[wp-trac] [WordPress Trac] #34747: Provide more flexibility for "You are customizing" text
WordPress Trac
noreply at wordpress.org
Wed Mar 2 21:32:51 UTC 2016
#34747: Provide more flexibility for "You are customizing" text
-----------------------------+-----------------------------
Reporter: danielbachhuber | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Customize | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+-----------------------------
Comment (by westonruter):
@ryankienstra nice work. Adding a class name to indicate whether filters
have applied is an easy way to do it.
If you need to pass these variables to the client, you could let the title
and description be new class properties on `WP_Customize_Manager`, similar
to the `$preview_url`, `$return_url`, and `$autofocus` properties that
were added (see [34269]). These could then be exported to JS via
`WP_Customize_Manager::customize_pane_settings()`.
If there were new `get_root_panel_title()` and
`get_root_panel_description()` methods on `WP_Customize_Manager`, the
filters for `customize_root_panel_title` and
`customize_root_panel_description` could be applied. Adding new methods to
the manager class would allow them to be unit tested.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34747#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list