mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-24 10:09:47 +01:00
Remove unused cat JavaScript file. props carldanley. fixes #24989.
Built from https://develop.svn.wordpress.org/trunk@25020 git-svn-id: http://core.svn.wordpress.org/trunk@25011 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ee8ac47db1
commit
129e4a6e3b
@ -558,6 +558,9 @@ $_old_files = array(
|
|||||||
'wp-admin/js/categories.min.js',
|
'wp-admin/js/categories.min.js',
|
||||||
'wp-admin/js/custom-fields.js',
|
'wp-admin/js/custom-fields.js',
|
||||||
'wp-admin/js/custom-fields.min.js',
|
'wp-admin/js/custom-fields.min.js',
|
||||||
|
// 3.7
|
||||||
|
'wp-admin/js/cat.js',
|
||||||
|
'wp-admin/js/cat.min.js',
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
jQuery(document).ready( function($) {
|
|
||||||
var myConfirm = function() { return '' !== $('#newcat').val(); };
|
|
||||||
$('#jaxcat').prepend('<span id="ajaxcat"><input type="text" name="newcat" id="newcat" size="16" autocomplete="off"/><input type="button" name="Button" data-wp-lists="add:categorychecklist:jaxcat" id="catadd" value="' + catL10n.add + '"/><input type="hidden"/><input type="hidden"/><span id="howto">' + catL10n.how + '</span></span><span id="cat-ajax-response"></span>');
|
|
||||||
$('#categorychecklist').wpList( { alt: '', response: 'cat-ajax-response', confirm: myConfirm } );
|
|
||||||
} );
|
|
1
wp-admin/js/cat.min.js
vendored
1
wp-admin/js/cat.min.js
vendored
@ -1 +0,0 @@
|
|||||||
jQuery(document).ready(function(a){var b=function(){return""!==a("#newcat").val()};a("#jaxcat").prepend('<span id="ajaxcat"><input type="text" name="newcat" id="newcat" size="16" autocomplete="off"/><input type="button" name="Button" data-wp-lists="add:categorychecklist:jaxcat" id="catadd" value="'+catL10n.add+'"/><input type="hidden"/><input type="hidden"/><span id="howto">'+catL10n.how+'</span></span><span id="cat-ajax-response"></span>'),a("#categorychecklist").wpList({alt:"",response:"cat-ajax-response",confirm:b})});
|
|
@ -384,13 +384,6 @@ function wp_default_scripts( &$scripts ) {
|
|||||||
$scripts->add( 'mce-view', "/wp-includes/js/mce-view$suffix.js", array( 'shortcode', 'media-models' ), false, 1 );
|
$scripts->add( 'mce-view', "/wp-includes/js/mce-view$suffix.js", array( 'shortcode', 'media-models' ), false, 1 );
|
||||||
|
|
||||||
if ( is_admin() ) {
|
if ( is_admin() ) {
|
||||||
$scripts->add( 'ajaxcat', "/wp-admin/js/cat$suffix.js", array( 'wp-lists' ) );
|
|
||||||
$scripts->add_data( 'ajaxcat', 'group', 1 );
|
|
||||||
did_action( 'init' ) && $scripts->localize( 'ajaxcat', 'catL10n', array(
|
|
||||||
'add' => esc_attr(__('Add')),
|
|
||||||
'how' => __('Separate multiple categories with commas.')
|
|
||||||
) );
|
|
||||||
|
|
||||||
$scripts->add( 'admin-tags', "/wp-admin/js/tags$suffix.js", array('jquery', 'wp-ajax-response'), false, 1 );
|
$scripts->add( 'admin-tags', "/wp-admin/js/tags$suffix.js", array('jquery', 'wp-ajax-response'), false, 1 );
|
||||||
did_action( 'init' ) && $scripts->localize( 'admin-tags', 'tagsl10n', array(
|
did_action( 'init' ) && $scripts->localize( 'admin-tags', 'tagsl10n', array(
|
||||||
'noPerm' => __('You do not have permission to do that.'),
|
'noPerm' => __('You do not have permission to do that.'),
|
||||||
|
Loading…
Reference in New Issue
Block a user