Coding Standards: Remove leading and trailing spaces in URLs on the Menus screen.
Follow-up to [42343]. Props kkmuffme. Fixes #62978. Built from https://develop.svn.wordpress.org/trunk@60045 git-svn-id: http://core.svn.wordpress.org/trunk@59381 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -879,9 +879,13 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
<div class="locations-row-links">
|
||||
<?php if ( isset( $menu_locations[ $_location ] ) && 0 !== $menu_locations[ $_location ] ) : ?>
|
||||
<span class="locations-edit-menu-link">
|
||||
<a href="
|
||||
<?php
|
||||
echo esc_url(
|
||||
printf(
|
||||
'<a href="%1$s">
|
||||
<span aria-hidden="true">%2$s</span>
|
||||
<span class="screen-reader-text">%3$s</span>
|
||||
</a>',
|
||||
esc_url(
|
||||
add_query_arg(
|
||||
array(
|
||||
'action' => 'edit',
|
||||
@@ -889,22 +893,19 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
),
|
||||
admin_url( 'nav-menus.php' )
|
||||
)
|
||||
),
|
||||
_x( 'Edit', 'menu' ),
|
||||
/* translators: Hidden accessibility text. */
|
||||
__( 'Edit selected menu' )
|
||||
);
|
||||
?>
|
||||
">
|
||||
<span aria-hidden="true"><?php _ex( 'Edit', 'menu' ); ?></span><span class="screen-reader-text">
|
||||
<?php
|
||||
/* translators: Hidden accessibility text. */
|
||||
_e( 'Edit selected menu' );
|
||||
?>
|
||||
</span>
|
||||
</a>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<span class="locations-add-menu-link">
|
||||
<a href="
|
||||
<?php
|
||||
echo esc_url(
|
||||
printf(
|
||||
'<a href="%1$s">%2$s</a>',
|
||||
esc_url(
|
||||
add_query_arg(
|
||||
array(
|
||||
'action' => 'edit',
|
||||
@@ -913,11 +914,10 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
),
|
||||
admin_url( 'nav-menus.php' )
|
||||
)
|
||||
),
|
||||
_x( 'Use new menu', 'menu' )
|
||||
);
|
||||
?>
|
||||
">
|
||||
<?php _ex( 'Use new menu', 'menu' ); ?>
|
||||
</a>
|
||||
</span>
|
||||
</div><!-- .locations-row-links -->
|
||||
</td><!-- .menu-location-menus -->
|
||||
@@ -1241,13 +1241,20 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
|
||||
<?php if ( $add_new_screen ) : ?>
|
||||
<span class="cancel-action">
|
||||
<a class="submitcancel cancellation menu-cancel" href="<?php echo esc_url( admin_url( 'nav-menus.php' ) ); ?>"><?php _e( 'Cancel' ); ?></a>
|
||||
<?php
|
||||
printf(
|
||||
'<a class="submitcancel cancellation menu-cancel" href="%1$s">%2$s</a>',
|
||||
esc_url( admin_url( 'nav-menus.php' ) ),
|
||||
__( 'Cancel' )
|
||||
);
|
||||
?>
|
||||
</span><!-- END .cancel-action -->
|
||||
<?php else : ?>
|
||||
<span class="delete-action">
|
||||
<a class="submitdelete deletion menu-delete" href="
|
||||
<?php
|
||||
echo esc_url(
|
||||
printf(
|
||||
'<a class="submitdelete deletion menu-delete" href="%1$s">%2$s</a>',
|
||||
esc_url(
|
||||
wp_nonce_url(
|
||||
add_query_arg(
|
||||
array(
|
||||
@@ -1258,9 +1265,10 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
),
|
||||
'delete-nav_menu-' . $nav_menu_selected_id
|
||||
)
|
||||
),
|
||||
__( 'Delete Menu' )
|
||||
);
|
||||
?>
|
||||
"><?php _e( 'Delete Menu' ); ?></a>
|
||||
</span><!-- END .delete-action -->
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-beta3-60044';
|
||||
$wp_version = '6.8-beta3-60045';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user