Remove the code for setting ajaxurl from Twenty Fourteen.
props celloexpressions. fixes #25866. git-svn-id: https://develop.svn.wordpress.org/trunk@26083 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
adb2e127c1
commit
f2bd2d8359
@ -370,9 +370,6 @@ class Featured_Content {
|
||||
*/
|
||||
public static function enqueue_scripts() {
|
||||
wp_enqueue_script( 'featured-content-suggest', get_template_directory_uri() . '/js/featured-content-admin.js', array( 'jquery', 'suggest' ), '20131022', true );
|
||||
wp_localize_script( 'featured-content-suggest', 'featuredContent', array(
|
||||
'ajaxurl' => admin_url( 'admin-ajax.php' ),
|
||||
) );
|
||||
wp_add_inline_style( 'customize-controls', "
|
||||
.ac_results {
|
||||
z-index: 500000;
|
||||
|
@ -1,3 +1,3 @@
|
||||
jQuery( function( $ ) {
|
||||
$( '#customize-control-featured-content-tag-name input' ).suggest( featuredContent.ajaxurl + '?action=ajax-tag-search&tax=post_tag', { delay: 500, minchars: 2 } );
|
||||
$( '#customize-control-featured-content-tag-name input' ).suggest( ajaxurl + '?action=ajax-tag-search&tax=post_tag', { delay: 500, minchars: 2 } );
|
||||
} );
|
||||
|
Loading…
Reference in New Issue
Block a user