-
Notifications
You must be signed in to change notification settings - Fork 927
Description
- I've read and understood the contribution guidelines.
- I've searched for any related issues and avoided creating a duplicate issue.
Please give us a description of what happened.
When "Breadcrumbs" is set to disabled (which is the default setting btw), and the current theme has (add_theme_support( 'yoast-seo-breadcrumbs' );
), the Breadcrumbs Title field (shown in green box below) for custom post types is not shown on the Search Appearance page.
Please describe what you expected to happen and why.
The Breadcrumbs Title fields should show when the theme support 'yoast-seo-breadcrumbs', no matter if "Breadcrumb settings" has been explicitly set to Enabled.
Also notice that the "Enable Breadcrumbs" field is hidden when the theme support 'yoast-seo-breadcrumbs', and the user have no way to turn that on even if they wanted to.
How can we reproduce this behavior?
- Fresh install Wordpress and Yoast SEO
- Activate a theme with
add_theme_support( 'yoast-seo-breadcrumbs' )
- The
breadcrumb title
fields are not shown
Related code
Whether to show Breadcrumbs TItle is determined by WPSEO_Options::get( 'breadcrumbs-enable' ) === true
(wordpress-seo/admin/views/tabs/metas/paper-content/post-type-content.php : Line 60
).
The condition should be revised here, or WPSEO_Options::get( 'breadcrumbs-enable' )
should return true
when theme support 'yoast-seo-breadcrumbs'
Technical info
- If relevant, which editor is affected (or editors):
- Classic Editor
- Gutenberg
- Classic Editor plugin
- Which browser is affected (or browsers):
- Chrome
- Firefox
- Safari
- Other
Used versions
- WordPress version: 5.2.1
- Yoast SEO version: 11.1.1
- Gutenberg plugin version:
- Classic Editor plugin version:
- Relevant plugins in case of a bug:
- Tested with theme: