mirror of
https://github.com/10h30/full-screen-morphing-search.git
synced 2026-06-05 15:08:32 +09:00
Changed wp_localize_script code
This commit is contained in:
@@ -64,10 +64,13 @@ class Full_Screen_Morphing_Search {
|
||||
|
||||
// Load Javascript.
|
||||
wp_enqueue_script( $this->plugin->name, $this->plugin->url . 'assets/js/full-screen-morphing-search.js', array( 'jquery' ), '1.0', true );
|
||||
$fsmsp_settings = array(
|
||||
'fsmsp_search_text' => get_option( 'fsmsp_options' )['fsmsp_search_form_text'],
|
||||
wp_localize_script(
|
||||
$this->plugin->name,
|
||||
'fsmsp_vars',
|
||||
array(
|
||||
'fsmsp_is_customize_preview' => is_customize_preview(),
|
||||
)
|
||||
);
|
||||
wp_localize_script( 'full-screen-morphing-search', 'fsmsp_set', $fsmsp_settings );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user