mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-27 01:38:35 +00:00
Coding Standards: Revert [54752] from the 6.1 branch.
This was supposed to be committed to trunk. See #56791. Built from https://develop.svn.wordpress.org/branches/6.1@54753 git-svn-id: http://core.svn.wordpress.org/branches/6.1@54305 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d6ec0b0ae2
commit
5024b6b781
@ -560,7 +560,6 @@ function _wp_build_title_and_description_for_single_post_type_block_template( $p
|
||||
'name' => $slug,
|
||||
);
|
||||
$args = wp_parse_args( $args, $default_args );
|
||||
|
||||
$posts_query = new WP_Query( $args );
|
||||
|
||||
if ( empty( $posts_query->posts ) ) {
|
||||
@ -593,7 +592,6 @@ function _wp_build_title_and_description_for_single_post_type_block_template( $p
|
||||
'title' => $post_title,
|
||||
);
|
||||
$args = wp_parse_args( $args, $default_args );
|
||||
|
||||
$posts_with_same_title_query = new WP_Query( $args );
|
||||
|
||||
if ( count( $posts_with_same_title_query->posts ) > 1 ) {
|
||||
@ -637,7 +635,6 @@ function _wp_build_title_and_description_for_taxonomy_block_template( $taxonomy,
|
||||
'slug' => $slug,
|
||||
);
|
||||
$args = wp_parse_args( $args, $default_args );
|
||||
|
||||
$terms_query = $term_query->query( $args );
|
||||
|
||||
if ( empty( $terms_query->terms ) ) {
|
||||
@ -672,7 +669,6 @@ function _wp_build_title_and_description_for_taxonomy_block_template( $taxonomy,
|
||||
'name' => $term_title,
|
||||
);
|
||||
$args = wp_parse_args( $args, $default_args );
|
||||
|
||||
$terms_with_same_title_query = $term_query->query( $args );
|
||||
|
||||
if ( count( $terms_with_same_title_query->terms ) > 1 ) {
|
||||
|
@ -3567,11 +3567,9 @@ function wp_nonce_ays( $action ) {
|
||||
__( 'You are attempting to log out of %s' ),
|
||||
get_bloginfo( 'name' )
|
||||
);
|
||||
|
||||
$redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';
|
||||
|
||||
$html = $title;
|
||||
$html .= '</p><p>';
|
||||
$redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';
|
||||
$html .= sprintf(
|
||||
/* translators: %s: Logout URL. */
|
||||
__( 'Do you really want to <a href="%s">log out</a>?' ),
|
||||
@ -3579,11 +3577,9 @@ function wp_nonce_ays( $action ) {
|
||||
);
|
||||
} else {
|
||||
$html = __( 'The link you followed has expired.' );
|
||||
|
||||
if ( wp_get_referer() ) {
|
||||
$wp_http_referer = remove_query_arg( 'updated', wp_get_referer() );
|
||||
$wp_http_referer = wp_validate_redirect( esc_url_raw( $wp_http_referer ) );
|
||||
|
||||
$html .= '</p><p>';
|
||||
$html .= sprintf(
|
||||
'<a href="%s">%s</a>',
|
||||
|
@ -3686,7 +3686,6 @@ function wp_add_editor_classic_theme_styles( $editor_settings ) {
|
||||
if ( WP_Theme_JSON_Resolver::theme_has_support() ) {
|
||||
return $editor_settings;
|
||||
}
|
||||
|
||||
$suffix = wp_scripts_get_suffix();
|
||||
$classic_theme_styles = ABSPATH . WPINC . "/css/classic-themes$suffix.css";
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.1.1-alpha-54752';
|
||||
$wp_version = '6.1.1-alpha-54753';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user