WordPress/wp-includes/customize
Weston Ruter b9b0371470 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.

Built from https://develop.svn.wordpress.org/trunk@39365


git-svn-id: http://core.svn.wordpress.org/trunk@39305 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-29 04:58:36 +00:00
..
class-wp-customize-background-image-control.php Customize: Improve custom background properties UI. 2016-10-26 06:52:29 +00:00
class-wp-customize-background-image-setting.php
class-wp-customize-background-position-control.php Customize: Improve custom background properties UI. 2016-10-26 06:52:29 +00:00
class-wp-customize-color-control.php Customize: Clean up docs and code style for customize changes in 4.7. 2016-11-23 06:05:32 +00:00
class-wp-customize-cropped-image-control.php
class-wp-customize-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:34:31 +00:00
class-wp-customize-filter-setting.php
class-wp-customize-header-image-control.php Customize: For Header Image, ensure "Previously uploaded" and "Suggested" headings are hidden when lists are empty. 2016-11-04 23:15:33 +00:00
class-wp-customize-header-image-setting.php
class-wp-customize-image-control.php
class-wp-customize-media-control.php
class-wp-customize-nav-menu-auto-add-control.php
class-wp-customize-nav-menu-control.php Menus: Use a label of "Display location" for individual nav menu settings. 2016-11-02 22:11:31 +00:00
class-wp-customize-nav-menu-item-control.php I18n: Introduce more translator comments for strings that contain placeholders but don't have an accompanying translator comment. 2016-11-21 02:46:30 +00:00
class-wp-customize-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-29 04:58:36 +00:00
class-wp-customize-nav-menu-location-control.php
class-wp-customize-nav-menu-name-control.php
class-wp-customize-nav-menu-section.php
class-wp-customize-nav-menu-setting.php General: Introduce a wp_list_sort() helper function, v2. 2016-10-25 21:26:32 +00:00
class-wp-customize-nav-menus-panel.php
class-wp-customize-new-menu-control.php
class-wp-customize-new-menu-section.php Administration: Improve the usage of the button CSS classes. 2016-09-28 19:54:28 +00:00
class-wp-customize-partial.php
class-wp-customize-selective-refresh.php Customize: Remove edit shortcut toggle button from preview since visibility is now linked with pane visibility. 2016-11-04 20:54:30 +00:00
class-wp-customize-sidebar-section.php
class-wp-customize-site-icon-control.php
class-wp-customize-theme-control.php I18n: Introduce more translator comments for strings that contain placeholders but don't have an accompanying translator comment. 2016-11-21 02:46:30 +00:00
class-wp-customize-themes-section.php Customize: Revert theme install feature. 2016-11-04 17:18:26 +00:00
class-wp-customize-upload-control.php
class-wp-widget-area-customize-control.php Administration: Improve the usage of the button CSS classes. 2016-09-28 19:54:28 +00:00
class-wp-widget-form-customize-control.php