Make WordPress Core

Changeset 61634


Ignore:
Timestamp:
02/13/2026 11:48:09 AM (7 months ago)
Author:
wildworks
Message:

Administration: Update Site Editor URLs to use path-based format.

Updates Site Editor URLs from legacy query parameters to the new path-based p parameter format.

Props jabir20, phpbits, sainathpoojary, SirLouen, westonruter, wildworks.
Fixes #63110.

Location:
trunk/src
Files:
2 edited

Legend:

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

    r61555 r61634  
    21302130                                <h3><?php _e( 'Switch up your site&#8217;s look & feel with Styles' ); ?></h3>
    21312131                                <p><?php _e( 'Tweak your site, or give it a whole new look! Get creative &#8212; how about a new color palette or font?' ); ?></p>
    2132                                 <a href="<?php echo esc_url( admin_url( '/site-editor.php?path=%2Fwp_global_styles' ) ); ?>"><?php _e( 'Edit styles' ); ?></a>
     2132                                <a href="<?php echo esc_url( add_query_arg( 'p', rawurlencode( '/styles' ), admin_url( 'site-editor.php' ) ) ); ?>"><?php _e( 'Edit styles' ); ?></a>
    21332133                        <?php else : ?>
    21342134                                <h3><?php _e( 'Discover a new way to build your site.' ); ?></h3>
  • trunk/src/wp-includes/post.php

    r61596 r61634  
    360360        $template_edit_link = 'site-editor.php?' . build_query(
    361361                array(
    362                         'postType' => '%s',
    363                         'postId'   => '%s',
    364                         'canvas'   => 'edit',
     362                        'p'      => '/%s/%s',
     363                        'canvas' => 'edit',
    365364                )
    366365        );
     
    532531        $navigation_post_edit_link = 'site-editor.php?' . build_query(
    533532                array(
    534                         'postId'   => '%s',
    535                         'postType' => 'wp_navigation',
    536                         'canvas'   => 'edit',
     533                        'p'      => '/wp_navigation/%s',
     534                        'canvas' => 'edit',
    537535                )
    538536        );
Note: See TracChangeset for help on using the changeset viewer.