Remove the code for setting ajaxurl from Twenty Fourteen.
props celloexpressions. fixes #25866. Built from https://develop.svn.wordpress.org/trunk@26083 git-svn-id: http://core.svn.wordpress.org/trunk@26003 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
698bb5744e
commit
4517d7b729
|
@ -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