Skip to content

Commit

Permalink
use ?: to fall back to “default” config
Browse files Browse the repository at this point in the history
  • Loading branch information
paulschreiber committed Jan 16, 2023
1 parent 519d0bb commit 1887300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class-mathjax-latex.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public static function add_script() {
$mathjax_location = get_option( 'kblog_mathjax_custom_location' );
}

$config = get_option( 'kblog_mathjax_config' ) || 'default';
$config = get_option( 'kblog_mathjax_config' ) ?: 'default';
$mathjax_url = add_query_arg( 'config', $config, $mathjax_location );

wp_enqueue_script( 'mathjax', $mathjax_url, false, MATHJAX_PLUGIN_VERSION, false );
Expand Down

0 comments on commit 1887300

Please sign in to comment.