Coding Standards: Use strict comparison in `wp-admin/includes/meta-boxes.php`.
Follow-up to [38], [647], [2890], [3570], [11815], [11816], [31550], [52620]. Props aristath, poena, afercia, SergeyBiryukov. See #58831. Built from https://develop.svn.wordpress.org/trunk@56420 git-svn-id: http://core.svn.wordpress.org/trunk@55932 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
69e0187d65
commit
3280c340cd
|
@ -1033,7 +1033,7 @@ function page_attributes_meta_box( $post ) {
|
||||||
endif; // End empty pages check.
|
endif; // End empty pages check.
|
||||||
endif; // End hierarchical check.
|
endif; // End hierarchical check.
|
||||||
|
|
||||||
if ( count( get_page_templates( $post ) ) > 0 && get_option( 'page_for_posts' ) != $post->ID ) :
|
if ( count( get_page_templates( $post ) ) > 0 && (int) get_option( 'page_for_posts' ) !== $post->ID ) :
|
||||||
$template = ! empty( $post->page_template ) ? $post->page_template : false;
|
$template = ! empty( $post->page_template ) ? $post->page_template : false;
|
||||||
?>
|
?>
|
||||||
<p class="post-attributes-label-wrapper page-template-label-wrapper"><label class="post-attributes-label" for="page_template"><?php _e( 'Template' ); ?></label>
|
<p class="post-attributes-label-wrapper page-template-label-wrapper"><label class="post-attributes-label" for="page_template"><?php _e( 'Template' ); ?></label>
|
||||||
|
@ -1496,7 +1496,7 @@ function link_advanced_meta_box( $link ) {
|
||||||
<?php
|
<?php
|
||||||
for ( $rating = 0; $rating <= 10; $rating++ ) {
|
for ( $rating = 0; $rating <= 10; $rating++ ) {
|
||||||
echo '<option value="' . $rating . '"';
|
echo '<option value="' . $rating . '"';
|
||||||
if ( isset( $link->link_rating ) && $link->link_rating == $rating ) {
|
if ( isset( $link->link_rating ) && $link->link_rating === $rating ) {
|
||||||
echo ' selected="selected"';
|
echo ' selected="selected"';
|
||||||
}
|
}
|
||||||
echo '>' . $rating . '</option>';
|
echo '>' . $rating . '</option>';
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.4-alpha-56419';
|
$wp_version = '6.4-alpha-56420';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue