mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
wp-lists: catch the whole class, pending comments: silently accept approval of already approved comment. Props mdawaffe
git-svn-id: https://develop.svn.wordpress.org/trunk@10057 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -26,7 +26,7 @@ var wpList = {
|
||||
var c = [], cl;
|
||||
try {
|
||||
cl = $(e).attr('class') || '';
|
||||
cl = cl.match(new RegExp(t+':[A-Za-z0-9:_=-]+'));
|
||||
cl = cl.match(new RegExp(t+':[\\S]+'));
|
||||
if ( cl ) { c = cl[0].split(':'); }
|
||||
} catch(r) {}
|
||||
return c;
|
||||
|
||||
@@ -77,7 +77,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
|
||||
$scripts->add( 'autosave', '/wp-includes/js/autosave.js', array('schedule', 'wp-ajax-response'), '20081110' );
|
||||
|
||||
$scripts->add( 'wp-lists', '/wp-includes/js/wp-lists.js', array('wp-ajax-response'), '20080729' );
|
||||
$scripts->add( 'wp-lists', '/wp-includes/js/wp-lists.js', array('wp-ajax-response'), '20081204' );
|
||||
$scripts->localize( 'wp-lists', 'wpListL10n', array(
|
||||
'url' => admin_url('admin-ajax.php')
|
||||
) );
|
||||
|
||||
Reference in New Issue
Block a user