Coding Standards: Use strict comparison in _fix_attachment_links().
Follow-up to [20308], [58360]. See #62279. Built from https://develop.svn.wordpress.org/trunk@59962 git-svn-id: http://core.svn.wordpress.org/trunk@59304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1177,7 +1177,7 @@ function _fix_attachment_links( $post ) {
|
||||
$url_id = (int) $url_match[2];
|
||||
$rel_id = (int) $rel_match[1];
|
||||
|
||||
if ( ! $url_id || ! $rel_id || $url_id != $rel_id || ! str_contains( $url_match[0], $site_url ) ) {
|
||||
if ( ! $url_id || ! $rel_id || $url_id !== $rel_id || ! str_contains( $url_match[0], $site_url ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -5676,9 +5676,9 @@
|
||||
),
|
||||
'color' => array(
|
||||
'gradients' => true,
|
||||
'text' => true,
|
||||
'__experimentalDefaultControls' => array(
|
||||
'background' => true,
|
||||
'text' => true
|
||||
'background' => true
|
||||
)
|
||||
),
|
||||
'typography' => array(
|
||||
|
||||
@@ -23,7 +23,7 @@ function render_block_core_query_total( $attributes, $content, $block ) {
|
||||
$wrapper_attributes = get_block_wrapper_attributes();
|
||||
if ( isset( $block->context['query']['inherit'] ) && $block->context['query']['inherit'] ) {
|
||||
$query_to_use = $wp_query;
|
||||
$current_page = max( 1, get_query_var( 'paged', 1 ) );
|
||||
$current_page = max( 1, (int) get_query_var( 'paged', 1 ) );
|
||||
} else {
|
||||
$page_key = isset( $block->context['queryId'] ) ? 'query-' . $block->context['queryId'] . '-page' : 'query-page';
|
||||
$current_page = isset( $_GET[ $page_key ] ) ? (int) $_GET[ $page_key ] : 1;
|
||||
@@ -31,7 +31,7 @@ function render_block_core_query_total( $attributes, $content, $block ) {
|
||||
}
|
||||
|
||||
$max_rows = $query_to_use->found_posts;
|
||||
$posts_per_page = $query_to_use->get( 'posts_per_page' );
|
||||
$posts_per_page = (int) $query_to_use->get( 'posts_per_page' );
|
||||
|
||||
// Calculate the range of posts being displayed.
|
||||
$start = ( $current_page - 1 ) * $posts_per_page + 1;
|
||||
|
||||
@@ -23,9 +23,9 @@
|
||||
},
|
||||
"color": {
|
||||
"gradients": true,
|
||||
"text": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"background": true
|
||||
"background": true,
|
||||
"text": true
|
||||
}
|
||||
},
|
||||
"typography": {
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-beta1-59961';
|
||||
$wp_version = '6.8-beta1-59962';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user