From f2bd2d8359caa7bad7f4d33b8e46161bbab427d9 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 11 Nov 2013 15:50:49 +0000 Subject: [PATCH] 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 --- src/wp-content/themes/twentyfourteen/inc/featured-content.php | 3 --- .../themes/twentyfourteen/js/featured-content-admin.js | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/wp-content/themes/twentyfourteen/inc/featured-content.php b/src/wp-content/themes/twentyfourteen/inc/featured-content.php index 9349b2300a..958f28142e 100644 --- a/src/wp-content/themes/twentyfourteen/inc/featured-content.php +++ b/src/wp-content/themes/twentyfourteen/inc/featured-content.php @@ -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; diff --git a/src/wp-content/themes/twentyfourteen/js/featured-content-admin.js b/src/wp-content/themes/twentyfourteen/js/featured-content-admin.js index 31178ac6f3..7283296389 100644 --- a/src/wp-content/themes/twentyfourteen/js/featured-content-admin.js +++ b/src/wp-content/themes/twentyfourteen/js/featured-content-admin.js @@ -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 } ); } );