From 1887300e92c961a0ba8b69e653fa6f9a3ad8704f Mon Sep 17 00:00:00 2001 From: Paul Schreiber Date: Mon, 16 Jan 2023 16:17:43 -0500 Subject: [PATCH] =?UTF-8?q?use=20=3F:=20to=20fall=20back=20to=20=E2=80=9Cd?= =?UTF-8?q?efault=E2=80=9D=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- class-mathjax-latex.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class-mathjax-latex.php b/class-mathjax-latex.php index 3ac82a0..3c9dc0e 100644 --- a/class-mathjax-latex.php +++ b/class-mathjax-latex.php @@ -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 );