-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revisit the Taxonomy List widget #1187
Conversation
…de ability to exclude chosen terms, make the taxonomies option a select instead of a text field, improve docs inside and outside the plugin
…use generic render_term_list instead
…(), improve its registration args when it's disabled. Remove unregister_post_types_taxonomy() and Largo_Term_Icons::register_taxonomy()
…t it needs to test.
… the prominence stuff.
Filed as a bug PR because of #1173, improvement because of the helpdesk ticket that started this. |
is that screenshot current? I'd like to remove all the extra inline docs because I think that's overkill if so |
case 'series': | ||
$this->render_series_list($tax_items, $instance); | ||
$this->render_series_list( $tax_items, $instance ); | ||
break; | ||
case 'category': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems unnecessary, shouldn't we just use an if/else here to use the one function for series and the other function for everything else?
Changes
docs/users/sidebarswidgets.rst
## Why
Widget rewrites: to make this widget simpler and more user-friendly. For HELPDESK-589.
Taxonomy registration rewrite: The old method of registering the post-type and series was to, if the theme option to register the taxonomy was not active, register them with empty labels and various amounts of 'hiddenness' based on the registration args. This was causing the inactive taxonomies to appear in an earlier version of this pull request with default "Tag" labels: #1173. The fix for this was to instead always register those taxonomies, but if they were not enabled in the theme options, to register them with the arguments
public
,show_admin_column
andshow_in_nav_menus
set tofalse
.What else?
This does not include the option to sort by last-updated; WordPress does not provide this option. 😞