wordpress-develop/tests/phpunit/tests/customize
Weston Ruter 7079459b77 Customize: Let static_front_page section be contextually active based on whether there are any published pages.
If there are no pages when the customizer is opened, the `static_front_page` section will be hidden. As soon as a page is created in the customizer session, the `static_front_page` section will be revealed. Previously the section would not be registered if there were no pages. Page stubs created via nav menus will appear in the `dropdown-pages` controls for `page_for_posts` and `page_on_front`, and such page stubs will thus cause the `static_front_page` section to appear. Plugins that facilitate page creation in the customizer by filtering `get_pages` will also cause the section to appear.

See #34923.
Fixes #38013.


git-svn-id: https://develop.svn.wordpress.org/trunk@38624 602fd350-edb4-49c9-b593-d223f7449a82
2016-09-20 00:46:54 +00:00
..
control.php Customize: Allow controls to be registered without any associated settings. 2016-02-24 18:27:45 +00:00
manager.php Customize: Let static_front_page section be contextually active based on whether there are any published pages. 2016-09-20 00:46:54 +00:00
nav-menu-item-setting.php Customize: Ensure nav menu items lacking a label use the title from the original object. 2016-09-17 21:49:49 +00:00
nav-menu-setting.php Customize: Prevent dropping backslashes from input on general settings and settings for nav menus and some widgets. 2016-02-23 01:01:43 +00:00
nav-menus.php Customize: Allow users to more seamlessly create page-based nav menus during customization. 2016-08-29 22:58:32 +00:00
panel.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
partial.php Customize: Define params on WP_Customize_Partial::render_callback() for the sake of subclasses overriding this method. 2016-03-02 06:08:38 +00:00
section.php Unit Tests: 2016-08-27 08:35:16 +00:00
selective-refresh-ajax.php Customize: Update server-sent setting validation notifications as changes are entered. 2016-06-14 19:16:54 +00:00
selective-refresh.php Customize: Skip exporting partials to client and handling rendering requests if user can't modify associated settings. 2016-02-23 18:13:30 +00:00
setting.php Customize: Ensure that WP_Customize_Setting::value() can return a previewed value for aggregated multidimensionals. 2016-07-06 05:58:28 +00:00
widgets.php Customize: Handle filtering sidebars_widgets when the underlying option is non-existent. 2016-05-02 23:41:18 +00:00