Skip to content

Commit

Permalink
Update class-wpcom-liveblog-entry-embed-sdks.php
Browse files Browse the repository at this point in the history
for reddit added conditional statement, version should not add in reddit js otherwise it will redirect to 404
  • Loading branch information
deepakrohillas authored Jun 20, 2023
1 parent a1e8bd6 commit cb6b6a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion classes/class-wpcom-liveblog-entry-embed-sdks.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ public static function enqueue() {
}

foreach ( self::$sdks as $name => $url ) {
wp_enqueue_script( $name, esc_url( $url ), array(), null, false );
if ( 'reddit' === $name ) {
wp_enqueue_script( $name, esc_url( $url ), array(), null, false );
} else {
wp_enqueue_script( $name, esc_url( $url ), array(), WPCOM_Liveblog::VERSION, false );
}
}
}

Expand Down

0 comments on commit cb6b6a5

Please sign in to comment.