wordpress-develop/tests/phpunit/tests/customize
Weston Ruter 9c39b16119 Customize: Fix logic for previewing the URL for nav_menu_item settings for terms and post type archives.
Fixes typo in args passed to `get_term_link()` which caused a fatal error due to this call returning a `WP_Error` which was set to `url`. Also fixes never-satisfiable condition for obtaining post type archive URL. Also ensures that `WP_Error` never leaks through as `url` by setting it to an empty string. Adds missing unit tests.

Amends [38991].
See #38114.
Fixes #38945.


git-svn-id: https://develop.svn.wordpress.org/trunk@39365 602fd350-edb4-49c9-b593-d223f7449a82
2016-11-27 03:04:35 +00:00
..
control.php Customize: Allow page stubs to be created via dropdown-pages controls in the Static Front Page section. 2016-10-25 06:30:27 +00:00
custom-css-setting.php Customize: Refactor logic for updating custom_css posts by introducing wp_update_custom_css_post() function and renaming update filter. 2016-11-23 17:33:21 +00:00
manager.php Theme starter content: Add support for featured images and page templates. 2016-11-23 09:52:27 +00:00
nav-menu-item-setting.php Customize: Fix logic for previewing the URL for nav_menu_item settings for terms and post type archives. 2016-11-27 03:04:35 +00:00
nav-menu-setting.php Tests: Use a minimal theme for tests. 2016-10-21 11:02:37 +00:00
nav-menus.php Customize: Prevent auto-draft post/page stubs from being saved with empty slugs or published with non-unique slugs. 2016-10-30 20:20:54 +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 Tests: Use a minimal theme for tests. 2016-10-21 11:02:37 +00:00
section.php Unit Tests: 2016-08-27 08:35:16 +00:00
selective-refresh-ajax.php Tests: Use a minimal theme for tests. 2016-10-21 11:02:37 +00:00
selective-refresh.php Tests: Use a minimal theme for tests. 2016-10-21 11:02:37 +00:00
setting.php Customize: Ensure WP_Customize_Setting::value() returns previewed value for custom types utilizing the customize_value_{$id_base} filter. 2016-11-19 05:59:12 +00:00
widgets.php Install: Update sidebars_widgets option for Twenty Seventeen to match its three sidebars. 2016-10-25 19:59:31 +00:00