Changeset 35704 for trunk/src/wp-includes/link-template.php
- Timestamp:
- 11/19/2015 04:24:35 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/link-template.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r35274 r35704 938 938 } 939 939 940 $location = add_query_arg( $args, admin_url( 'edit-tags.php' ) ); 940 if ( $tax->show_ui ) { 941 $location = add_query_arg( $args, admin_url( 'edit-tags.php' ) ); 942 } else { 943 $location = ''; 944 } 941 945 942 946 /** … … 1255 1259 return; 1256 1260 1257 $allowed = array_merge( array( 1258 'revision', 1259 ), get_post_types( array( 1260 'show_ui' => true, 1261 ) ) ); 1262 1263 if ( ! in_array( $post->post_type, $allowed ) ) { 1264 return; 1261 if ( $post_type_object->_edit_link ) { 1262 $link = admin_url( sprintf( $post_type_object->_edit_link . $action, $post->ID ) ); 1263 } else { 1264 $link = ''; 1265 1265 } 1266 1266 … … 1275 1275 * are encoded. 1276 1276 */ 1277 return apply_filters( 'get_edit_post_link', admin_url( sprintf( $post_type_object->_edit_link . $action, $post->ID ) ), $post->ID, $context );1277 return apply_filters( 'get_edit_post_link', $link, $post->ID, $context ); 1278 1278 } 1279 1279
Note: See TracChangeset
for help on using the changeset viewer.