@@ 259-262 (lines=4) @@ | ||
256 | $messages[] = sprintf( _n( '%s comment approved', '%s comments approved', $approved ), $approved ); |
|
257 | } |
|
258 | ||
259 | if ( $spammed > 0 ) { |
|
260 | $ids = isset($_REQUEST['ids']) ? $_REQUEST['ids'] : 0; |
|
261 | /* translators: %s: number of comments marked as spam */ |
|
262 | $messages[] = sprintf( _n( '%s comment marked as spam.', '%s comments marked as spam.', $spammed ), $spammed ) . ' <a href="' . esc_url( wp_nonce_url( "edit-comments.php?doaction=undo&action=unspam&ids=$ids", "bulk-comments" ) ) . '">' . __('Undo') . '</a><br />'; |
|
263 | } |
|
264 | ||
265 | if ( $unspammed > 0 ) { |
|
@@ 270-273 (lines=4) @@ | ||
267 | $messages[] = sprintf( _n( '%s comment restored from the spam', '%s comments restored from the spam', $unspammed ), $unspammed ); |
|
268 | } |
|
269 | ||
270 | if ( $trashed > 0 ) { |
|
271 | $ids = isset($_REQUEST['ids']) ? $_REQUEST['ids'] : 0; |
|
272 | /* translators: %s: number of comments moved to the Trash */ |
|
273 | $messages[] = sprintf( _n( '%s comment moved to the Trash.', '%s comments moved to the Trash.', $trashed ), $trashed ) . ' <a href="' . esc_url( wp_nonce_url( "edit-comments.php?doaction=undo&action=untrash&ids=$ids", "bulk-comments" ) ) . '">' . __('Undo') . '</a><br />'; |
|
274 | } |
|
275 | ||
276 | if ( $untrashed > 0 ) { |
@@ 332-335 (lines=4) @@ | ||
329 | elseif ( isset( $bulk_messages['post'][ $message ] ) ) |
|
330 | $messages[] = sprintf( $bulk_messages['post'][ $message ], number_format_i18n( $count ) ); |
|
331 | ||
332 | if ( $message == 'trashed' && isset( $_REQUEST['ids'] ) ) { |
|
333 | $ids = preg_replace( '/[^0-9,]/', '', $_REQUEST['ids'] ); |
|
334 | $messages[] = '<a href="' . esc_url( wp_nonce_url( "edit.php?post_type=$post_type&doaction=undo&action=untrash&ids=$ids", "bulk-posts" ) ) . '">' . __('Undo') . '</a>'; |
|
335 | } |
|
336 | } |
|
337 | ||
338 | if ( $messages ) |