Ticket #25866: 25866.diff
| File 25866.diff, 2.0 KB (added by , 12 years ago) |
|---|
-
wp-admin/customize.php
74 74 $body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) ); 75 75 76 76 $admin_title = sprintf( __( '%1$s — WordPress' ), strip_tags( sprintf( __( 'Customize %s' ), $wp_customize->theme()->display('Name') ) ) ); 77 ?><title><?php echo $admin_title; ?></title> <?php77 ?><title><?php echo $admin_title; ?></title> 78 78 79 <script type="text/javascript"> 80 var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>'; 81 </script> 82 83 <?php 79 84 /** 80 85 * Print Customizer control styles. 81 86 * -
wp-content/themes/twentyfourteen/inc/featured-content.php
372 372 */ 373 373 public static function enqueue_scripts() { 374 374 wp_enqueue_script( 'featured-content-suggest', get_template_directory_uri() . '/js/featured-content-admin.js', array( 'jquery', 'suggest' ), '20131022', true ); 375 wp_localize_script( 'featured-content-suggest', 'featuredContent', array(376 'ajaxurl' => admin_url( 'admin-ajax.php' ),377 ) );378 375 } 379 376 380 377 -
wp-content/themes/twentyfourteen/js/featured-content-admin.js
1 1 jQuery( function( $ ) { 2 $( '#customize-control-featured-content-tag-name input' ).suggest( featuredContent.ajaxurl + '?action=ajax-tag-search&tax=post_tag', { delay: 500, minchars: 2 } );2 $( '#customize-control-featured-content-tag-name input' ).suggest( ajaxurl + '?action=ajax-tag-search&tax=post_tag', { delay: 500, minchars: 2 } ); 3 3 } );