[wp-trac] [WordPress Trac] #58746: Toolbar: Make the 'Edit site' link aware of the current template

WordPress Trac noreply at wordpress.org
Tue Jul 11 11:32:02 UTC 2023


#58746: Toolbar: Make the 'Edit site' link aware of the current template
------------------------------+---------------------------
 Reporter:  Mamaduka          |       Owner:  mikeschroder
     Type:  task (blessed)    |      Status:  closed
 Priority:  normal            |   Milestone:  6.3
Component:  Toolbar           |     Version:  5.9
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+---------------------------
Changes (by mikeschroder):

 * owner:  (none) => mikeschroder
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"56209" 56209]:
 {{{
 #!CommitTicketReference repository="" revision="56209"
 Toolbar: Make the 'Edit site' link open the editor with the current
 template.

 Adds a global, `$_wp_current_template_id`, to allow the 'Edit site' link
 in the admin bar to be aware of the current template and pass it to the
 Site Editor, so it can load the appropriate one directly.

 See https://github.com/WordPress/gutenberg/issues/37850 for further
 discussion.

 Props Mamaduka, poena, abitofmind, audrasjb, mikinc860, alexstine,
 annezazu, beckej, jameskoster, bacoords, clubkert, paaljoachim, get_dave,
 priethor, skorasaurus.
 Fixes #58746.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58746#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list