Merged in feature/81-dev-dev01 (pull request #5)
auto-patch 81-dev-dev01-2023-12-05T22_45_26 * auto-patch 81-dev-dev01-2023-12-05T22_45_26
This commit is contained in:
@@ -124,7 +124,7 @@ if ( $doaction ) {
|
||||
}
|
||||
|
||||
if ( wp_check_post_lock( $post_id ) ) {
|
||||
$locked++;
|
||||
++$locked;
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ if ( $doaction ) {
|
||||
wp_die( __( 'Error in moving the item to Trash.' ) );
|
||||
}
|
||||
|
||||
$trashed++;
|
||||
++$trashed;
|
||||
}
|
||||
|
||||
$sendback = add_query_arg(
|
||||
@@ -160,7 +160,7 @@ if ( $doaction ) {
|
||||
wp_die( __( 'Error in restoring the item from Trash.' ) );
|
||||
}
|
||||
|
||||
$untrashed++;
|
||||
++$untrashed;
|
||||
}
|
||||
$sendback = add_query_arg( 'untrashed', $untrashed, $sendback );
|
||||
|
||||
@@ -185,7 +185,7 @@ if ( $doaction ) {
|
||||
wp_die( __( 'Error in deleting the item.' ) );
|
||||
}
|
||||
}
|
||||
$deleted++;
|
||||
++$deleted;
|
||||
}
|
||||
$sendback = add_query_arg( 'deleted', $deleted, $sendback );
|
||||
break;
|
||||
@@ -288,7 +288,11 @@ if ( 'post' === $post_type ) {
|
||||
'title' => __( 'Bulk actions' ),
|
||||
'content' =>
|
||||
'<p>' . __( 'You can also edit or move multiple posts to the Trash at once. Select the posts you want to act on using the checkboxes, then select the action you want to take from the Bulk actions menu and click Apply.' ) . '</p>' .
|
||||
'<p>' . __( 'When using Bulk Edit, you can change the metadata (categories, author, etc.) for all selected posts at once. To remove a post from the grouping, just click the x next to its name in the Bulk Edit area that appears.' ) . '</p>',
|
||||
'<p>' . sprintf(
|
||||
/* translators: %s: The dismiss dashicon used for buttons that dismiss or remove. */
|
||||
__( 'When using Bulk Edit, you can change the metadata (categories, author, etc.) for all selected posts at once. To remove a post from the grouping, just click the %s<span class="screen-reader-text">remove</span> button next to its name in the Bulk Edit area that appears.' ),
|
||||
'<span class="dashicons dashicons-dismiss" aria-hidden="true" style="font-size: 16px; width: 16px; vertical-align: middle;"></span>'
|
||||
) . '</p>',
|
||||
)
|
||||
);
|
||||
|
||||
@@ -377,17 +381,17 @@ $bulk_messages['page'] = array(
|
||||
'untrashed' => _n( '%s page restored from the Trash.', '%s pages restored from the Trash.', $bulk_counts['untrashed'] ),
|
||||
);
|
||||
$bulk_messages['wp_block'] = array(
|
||||
/* translators: %s: Number of blocks. */
|
||||
'updated' => _n( '%s block updated.', '%s blocks updated.', $bulk_counts['updated'] ),
|
||||
'locked' => ( 1 === $bulk_counts['locked'] ) ? __( '1 block not updated, somebody is editing it.' ) :
|
||||
/* translators: %s: Number of blocks. */
|
||||
_n( '%s block not updated, somebody is editing it.', '%s blocks not updated, somebody is editing them.', $bulk_counts['locked'] ),
|
||||
/* translators: %s: Number of blocks. */
|
||||
'deleted' => _n( '%s block permanently deleted.', '%s blocks permanently deleted.', $bulk_counts['deleted'] ),
|
||||
/* translators: %s: Number of blocks. */
|
||||
'trashed' => _n( '%s block moved to the Trash.', '%s blocks moved to the Trash.', $bulk_counts['trashed'] ),
|
||||
/* translators: %s: Number of blocks. */
|
||||
'untrashed' => _n( '%s block restored from the Trash.', '%s blocks restored from the Trash.', $bulk_counts['untrashed'] ),
|
||||
/* translators: %s: Number of patterns. */
|
||||
'updated' => _n( '%s pattern updated.', '%s patterns updated.', $bulk_counts['updated'] ),
|
||||
'locked' => ( 1 === $bulk_counts['locked'] ) ? __( '1 pattern not updated, somebody is editing it.' ) :
|
||||
/* translators: %s: Number of patterns. */
|
||||
_n( '%s pattern not updated, somebody is editing it.', '%s patterns not updated, somebody is editing them.', $bulk_counts['locked'] ),
|
||||
/* translators: %s: Number of patterns. */
|
||||
'deleted' => _n( '%s pattern permanently deleted.', '%s patterns permanently deleted.', $bulk_counts['deleted'] ),
|
||||
/* translators: %s: Number of patterns. */
|
||||
'trashed' => _n( '%s pattern moved to the Trash.', '%s patterns moved to the Trash.', $bulk_counts['trashed'] ),
|
||||
/* translators: %s: Number of patterns. */
|
||||
'untrashed' => _n( '%s pattern restored from the Trash.', '%s patterns restored from the Trash.', $bulk_counts['untrashed'] ),
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -465,9 +469,13 @@ foreach ( $bulk_counts as $message => $count ) {
|
||||
}
|
||||
|
||||
if ( $messages ) {
|
||||
printf(
|
||||
'<div id="message" class="updated notice is-dismissible"><p>%s</p></div>',
|
||||
implode( ' ', $messages )
|
||||
wp_admin_notice(
|
||||
implode( ' ', $messages ),
|
||||
array(
|
||||
'id' => 'message',
|
||||
'additional_classes' => array( 'updated' ),
|
||||
'dismissible' => true,
|
||||
)
|
||||
);
|
||||
}
|
||||
unset( $messages );
|
||||
@@ -482,7 +490,7 @@ $_SERVER['REQUEST_URI'] = remove_query_arg( array( 'locked', 'skipped', 'updated
|
||||
<?php $wp_list_table->search_box( $post_type_object->labels->search_items, 'post' ); ?>
|
||||
|
||||
<input type="hidden" name="post_status" class="post_status_page" value="<?php echo ! empty( $_REQUEST['post_status'] ) ? esc_attr( $_REQUEST['post_status'] ) : 'all'; ?>" />
|
||||
<input type="hidden" name="post_type" class="post_type_page" value="<?php echo $post_type; ?>" />
|
||||
<input type="hidden" name="post_type" class="post_type_page" value="<?php echo esc_attr( $post_type ); ?>" />
|
||||
|
||||
<?php if ( ! empty( $_REQUEST['author'] ) ) { ?>
|
||||
<input type="hidden" name="author" value="<?php echo esc_attr( $_REQUEST['author'] ); ?>" />
|
||||
|
||||
Reference in New Issue
Block a user