diff --git a/src/wp-admin/edit.php b/src/wp-admin/edit.php
index f56beabae8..9527b9cee5 100644
a
|
b
|
|
4 | 4 | * |
5 | 5 | * @package WordPress |
6 | 6 | * @subpackage Administration |
| 7 | * @global wpdb $wpdb WordPress database abstraction object. |
7 | 8 | */ |
8 | 9 | |
9 | 10 | /** WordPress Administration Bootstrap */ |
… |
… |
if ( $doaction ) { |
92 | 93 | $post_status = preg_replace( '/[^a-z0-9_-]+/i', '', $_REQUEST['post_status'] ); |
93 | 94 | // Validate the post status exists. |
94 | 95 | if ( get_post_status_object( $post_status ) ) { |
95 | | /** |
96 | | * @global wpdb $wpdb WordPress database abstraction object. |
97 | | */ |
| 96 | |
98 | 97 | global $wpdb; |
99 | 98 | |
100 | 99 | $post_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_type=%s AND post_status = %s", $post_type, $post_status ) ); |
diff --git a/src/wp-includes/blocks/search.php b/src/wp-includes/blocks/search.php
index 26b6a7585c..ff8b07feb6 100644
a
|
b
|
function render_block_core_search( $attributes ) { |
72 | 72 | if ( ! empty( $typography_classes ) ) { |
73 | 73 | $input_classes[] = $typography_classes; |
74 | 74 | } |
| 75 | |
| 76 | // Check array attributes place holder value isset or not |
| 77 | if( empty( $attributes['placeholder'] ) ) { |
| 78 | $attributes['placeholder'] = 'Optional placeholder…'; |
| 79 | } |
| 80 | |
75 | 81 | $input_markup = sprintf( |
76 | 82 | '<input type="search" id="%s" class="wp-block-search__input %s" name="s" value="%s" placeholder="%s" %s required />', |
77 | 83 | $input_id, |