mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-18 12:35:03 +00:00
Make b0rked message slightly more informative.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7432 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
da37142561
commit
609f04c4b9
@ -57,4 +57,4 @@ wpAjax = jQuery.extend( {
|
|||||||
selector = jQuery( selector );
|
selector = jQuery( selector );
|
||||||
return !wpAjax.invalidateForm( selector.find('.form-required').andSelf().filter('.form-required:has(:input[value=""]), .form-required:input[value=""]') ).size();
|
return !wpAjax.invalidateForm( selector.find('.form-required').andSelf().filter('.form-required:has(:input[value=""]), .form-required:input[value=""]') ).size();
|
||||||
}
|
}
|
||||||
}, wpAjax || { noPerm: 'You do not have permission to do that.', broken: 'AJAX is teh b0rked.' } );
|
}, wpAjax || { noPerm: 'You do not have permission to do that.', broken: 'An unidentified error has occurred.' } );
|
||||||
|
@ -43,8 +43,8 @@ class WP_Scripts {
|
|||||||
|
|
||||||
$this->add( 'wp-ajax-response', '/wp-includes/js/wp-ajax-response.js', array('jquery'), '20080316' );
|
$this->add( 'wp-ajax-response', '/wp-includes/js/wp-ajax-response.js', array('jquery'), '20080316' );
|
||||||
$this->localize( 'wp-ajax-response', 'wpAjax', array(
|
$this->localize( 'wp-ajax-response', 'wpAjax', array(
|
||||||
'noPerm' => 'You do not have permission to do that.',
|
'noPerm' => __('You do not have permission to do that.'),
|
||||||
'broken' => 'AJAX is teh b0rked.'
|
'broken' => __('An unidentified error has occurred.')
|
||||||
) );
|
) );
|
||||||
|
|
||||||
$this->add( 'autosave', '/wp-includes/js/autosave.js', array('schedule', 'wp-ajax-response'), '20080317' );
|
$this->add( 'autosave', '/wp-includes/js/autosave.js', array('schedule', 'wp-ajax-response'), '20080317' );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user