Changeset 32954
- Timestamp:
- 06/26/2015 02:12:27 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r32926 r32954 904 904 * @param string $object_type The object type. Used to highlight the proper post type menu on the linked page. 905 905 * Defaults to the first object_type associated with the taxonomy. 906 * @return string The edit term link URL for the given term.906 * @return string|null The edit term link URL for the given term, or null on failure. 907 907 */ 908 908 function get_edit_term_link( $term_id, $taxonomy, $object_type = '' ) { 909 909 $tax = get_taxonomy( $taxonomy ); 910 if ( ! current_user_can( $tax->cap->edit_terms ) )910 if ( ! $tax || ! current_user_can( $tax->cap->edit_terms ) ) { 911 911 return; 912 } 912 913 913 914 $term = get_term( $term_id, $taxonomy ); 915 if ( ! $term || is_wp_error( $term ) ) { 916 return; 917 } 914 918 915 919 $args = array(
Note: See TracChangeset
for help on using the changeset viewer.