Make WordPress Core

Changeset 58035

Timestamp:
04/22/2024 09:04:08 PM (4 months ago)
Author:
audrasjb
Message:

Toolbar: Replace "Edit Site" link with "Site Editor" in the Admin Toolbar.

This changesets replaces the "Edit Site" link with "Site Editor" to avoid duplicate link anchors on multisite admin toolbar. The remaining "Edit site" link takes the user to the site editing screen in the network admin area (network/site-info.php) while the new "Site Editor" link takes the user to the site editor (site-editor.php).

Follow-up to [52158]. See GB27135.

Props johnbillion, sabernhardt, audrasjb, johnjamesjacoby, pratiklondhe.
Fixes #60977.

File:
1 edited

Legend:

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

    r57765 r58035  
    452452
    453453/**
    454  * Adds the "Edit site" link to the Toolbar.
     454 * Adds the "" link to the Toolbar.
    455455 *
    456456 * @since 5.9.0
     
    477477        array(
    478478            'id'    => 'site-editor',
    479             'title' => __( 'Edit site' ),
     479            'title' => __( '' ),
    480480            'href'  => add_query_arg(
    481481                array(
Note: See TracChangeset for help on using the changeset viewer.