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:
Sergey Biryukov 2013-11-11 15:50:49 +00:00
parent adb2e127c1
commit f2bd2d8359
2 changed files with 1 additions and 4 deletions

View File

@ -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;

View File

@ -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 } );
} );