diff --git a/wp-admin/includes/deprecated.php b/wp-admin/includes/deprecated.php index b4aecd4ff9..33a7d8fef0 100644 --- a/wp-admin/includes/deprecated.php +++ b/wp-admin/includes/deprecated.php @@ -1365,7 +1365,7 @@ function wp_dashboard_plugins_output( $rss, $args = array() ) { // Is this random plugin's slug already installed? If so, try again. reset( $plugin_slugs ); foreach ( $plugin_slugs as $plugin_slug ) { - if ( $slug == substr( $plugin_slug, 0, strlen( $slug ) ) ) { + if ( $slug === substr( $plugin_slug, 0, strlen( $slug ) ) ) { unset( $items[$item_key] ); continue 2; } diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php index 4ec2354f29..645e32f5bf 100644 --- a/wp-includes/deprecated.php +++ b/wp-includes/deprecated.php @@ -947,7 +947,7 @@ function get_links($category = -1, $before = '', $after = '
', $between = ' _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmarks()' ); $order = 'ASC'; - if ( substr($orderby, 0, 1) == '_' ) { + if ( substr($orderby, 0, 1) === '_' ) { $order = 'DESC'; $orderby = substr($orderby, 1); } @@ -980,7 +980,7 @@ function get_links($category = -1, $before = '', $after = '
', $between = ' $title = $desc; if ( $show_updated ) - if (substr($row->link_updated_f, 0, 2) != '00') + if (substr($row->link_updated_f, 0, 2) !== '00') $title .= ' ('.__('Last updated') . ' ' . gmdate(get_option('links_updated_date_format'), $row->link_updated_f + (get_option('gmt_offset') * HOUR_IN_SECONDS)) . ')'; if ( '' != $title ) @@ -1042,7 +1042,7 @@ function get_links_list($order = 'name') { // Handle link category sorting. $direction = 'ASC'; - if ( '_' == substr($order,0,1) ) { + if ( '_' === substr($order,0,1) ) { $direction = 'DESC'; $order = substr($order,1); } @@ -1739,7 +1739,7 @@ function make_url_footnote( $content ) { $link_url = $matches[2][$i]; $link_text = $matches[4][$i]; $content = str_replace( $link_match, $link_text . ' ' . $link_number, $content ); - $link_url = ( ( strtolower( substr( $link_url, 0, 7 ) ) != 'http://' ) && ( strtolower( substr( $link_url, 0, 8 ) ) != 'https://' ) ) ? get_option( 'home' ) . $link_url : $link_url; + $link_url = ( ( strtolower( substr( $link_url, 0, 7 ) ) !== 'http://' ) && ( strtolower( substr( $link_url, 0, 8 ) ) !== 'https://' ) ) ? get_option( 'home' ) . $link_url : $link_url; $links_summary .= "\n" . $link_number . ' ' . $link_url; } $content = strip_tags( $content ); diff --git a/wp-includes/kses.php b/wp-includes/kses.php index c5542a7b00..f85f0b1366 100644 --- a/wp-includes/kses.php +++ b/wp-includes/kses.php @@ -799,7 +799,7 @@ function wp_kses_one_attr( $attr, $element ) { $quote = $value[0]; } if ( '"' === $quote || "'" === $quote ) { - if ( substr( $value, -1 ) != $quote ) { + if ( substr( $value, -1 ) !== $quote ) { return ''; } $value = substr( $value, 1, -1 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index a5a4182890..21ebfc59ca 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-55652'; +$wp_version = '6.3-alpha-55653'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.