Make WordPress Core

Ticket #25549: 25549.2.diff

File 25549.2.diff, 1.1 KB (added by kovshenin, 12 years ago)
  • wp-content/themes/twentyfourteen/inc/featured-content.php

     
    326326                        if ( ! is_wp_error( $tag ) && isset( $tag->name ) )
    327327                                $tag_name = $tag->name;
    328328                }
     329
     330                wp_enqueue_script( 'twentyfourteen-admin', get_template_directory_uri() . '/js/featured-content-admin.js', array( 'jquery', 'suggest' ), '20131016', true );
    329331                ?>
    330332                <div id="featured-content-ui">
    331333                        <p>
  • wp-content/themes/twentyfourteen/js/featured-content-admin.js

     
     1jQuery(document).ready(function($){
     2        $( '#featured-content-tag-name' ).suggest( ajaxurl + '?action=ajax-tag-search&tax=post_tag', { delay: 500, minchars: 2 } );
     3});
     4 No newline at end of file