Changeset 31218
- Timestamp:
- 01/16/2015 09:36:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r31154 r31218 889 889 * @since 3.1.0 890 890 * 891 * @param int $term_id Term ID 892 * @param string $taxonomy Taxonomy 893 * @param string $object_type The object type 891 * @param int $term_id Term ID. 892 * @param string $taxonomy Taxonomy. 893 * @param string $object_type The object type. Used to highlight the proper post type menu on the linked page. 894 * Defaults to the first object_type associated with the taxonomy. 894 895 * @return string The edit term link URL for the given term. 895 896 */ … … 907 908 ); 908 909 909 if ( $object_type ) 910 if ( $object_type ) { 910 911 $args['post_type'] = $object_type; 912 } else if ( ! empty( $tax->object_type ) ) { 913 $args['post_type'] = reset( $tax->object_type ); 914 } 911 915 912 916 $location = add_query_arg( $args, admin_url( 'edit-tags.php' ) );
Note: See TracChangeset
for help on using the changeset viewer.