Make WordPress Core

Changeset 58223


Ignore:
Timestamp:
05/28/2024 08:00:18 AM (5 months ago)
Author:
youknowriad
Message:

Toolbar: Update the site editor link in the Admin Bar.

The details page is being removed from the site editor in 6.6. we need to direct the admin bar menu item to the "edit" mode page directly.

Props youknowriad, mamaduka.
Fixes #61266.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/admin-bar.php

    r58035 r58223  
    456456 * @since 5.9.0
    457457 * @since 6.3.0 Added `$_wp_current_template_id` global for editing of current template directly from the admin bar.
     458 * @since 6.6.0 Added the `canvas` query arg to the Site Editor link.
    458459 *
    459460 * @global string $_wp_current_template_id
     
    482483                    'postType' => 'wp_template',
    483484                    'postId'   => $_wp_current_template_id,
     485                    'canvas'   => 'edit',
    484486                ),
    485487                admin_url( 'site-editor.php' )
Note: See TracChangeset for help on using the changeset viewer.