Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#20575 closed enhancement (fixed)

Add a link to the Customizer from the Admin Bar appearance menu

Reported by: sabreuse's profile sabreuse Owned by: ryan's profile ryan
Milestone: 3.4 Priority: normal
Severity: normal Version: 3.4
Component: Customize Keywords: has-patch
Focuses: Cc:


If we want the theme customizer to make theme setup and tweaking as smooth as possible, users should have a direct link to from the front end of their sites instead of having to go back through the Admin themes page to find it. The attached patch adds it for users with the Switch Themes or Edit Theme Options caps.

Attachments (3)

20575.diff (806 bytes) - added by sabreuse 12 years ago.
20575.2.diff (633 bytes) - added by sabreuse 12 years ago.
20575.whitespace.patch (797 bytes) - added by SergeyBiryukov 12 years ago.

Download all attachments as: .zip

Change History (8)

12 years ago

#1 @nacin
12 years ago

  • Component changed from General to Appearance
  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 3.4
  • Version set to 3.4

Sounds good to me.

Notes on 20575.diff:

  • edit_theme_options is all that is necessary. Thus it can simply be moved to directly below the edit_theme_options/return check.
  • We have wp_customize_url() to be used here.
  • Any call to wp_get_theme() means reading style.css. In this case, get_stylesheet() is the proper thing to take and pass to wp_customize_url().

12 years ago

#2 @sabreuse
12 years ago

20575.2.diff is a refresh - thanks for the comments!

#3 @ryan
12 years ago

  • Owner set to ryan
  • Resolution set to fixed
  • Status changed from new to closed

In [20666]:

Add a link to the Customizer from the Admin Bar appearance menu. Props sabreuse. fixes #20575

#4 @SergeyBiryukov
12 years ago

Nitpicking: proper whitespace as per the coding standards (20575.whitespace.patch).

#5 @nacin
12 years ago

In [20934]:

Theme Customizer: As customize.php without a theme parameter defaults to the current theme, update wp_customize_url() to make $stylesheet optional and update references for the current theme.

see #19910, #20751, #20575.

Note: See TracTickets for help on using tickets.