Skip to content

Commit

Permalink
Update class-wpcom-liveblog-entry-embed-sdks.php
Browse files Browse the repository at this point in the history
Comments added
  • Loading branch information
deepakrohillas authored Jun 26, 2023
1 parent 9485e8c commit e66ea51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/class-wpcom-liveblog-entry-embed-sdks.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static function enqueue() {

foreach ( self::$sdks as $name => $url ) {
if ( 'reddit' === $name ) {
// Do not attach `?ver=` for reddit script due to redirects
// Don't attach version with reddit js script file, it will generate 404 error with reddit js
$version = 'reddit' === $name ? null : WPCOM_Liveblog::VERSION;
wp_enqueue_script( $name, esc_url( $url ), array(), $version, false );
} else {
Expand Down

0 comments on commit e66ea51

Please sign in to comment.