In get_edit_term_link(), default to a valid $object_type.
The $object_type param is used to set the 'post_type' query var, which determines the post type menu that will be expanded when clicking through to the term edit page. Not all taxonomies are associated with Posts, so it makes sense to default to a post_type that the taxonomy is actually associated with. Props DzeryCZ, juliobox. Fixes #29251. Built from https://develop.svn.wordpress.org/trunk@31218 git-svn-id: http://core.svn.wordpress.org/trunk@31199 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.2-alpha-31217';
|
||||
$wp_version = '4.2-alpha-31218';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user