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:
Sergey Biryukov
2025-03-10 20:03:25 +00:00
parent 298e06687d
commit 90b04c9acb
5 changed files with 8 additions and 8 deletions

View File

@@ -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;
}

View File

@@ -5676,9 +5676,9 @@
),
'color' => array(
'gradients' => true,
'text' => true,
'__experimentalDefaultControls' => array(
'background' => true,
'text' => true
'background' => true
)
),
'typography' => array(

View File

@@ -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;

View File

@@ -23,9 +23,9 @@
},
"color": {
"gradients": true,
"text": true,
"__experimentalDefaultControls": {
"background": true
"background": true,
"text": true
}
},
"typography": {

View File

@@ -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.