Changeset 34357
- Timestamp:
- 09/20/2015 04:37:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r34336 r34357 1222 1222 * @param int $id Optional. Post ID. 1223 1223 * @param string $context Optional, defaults to display. How to write the '&', defaults to '&'. 1224 * @return string|void The edit post link for the given post. 1224 * @return string|null The edit post link for the given post. null if the post type is invalid or does 1225 * not allow an editing UI. 1225 1226 */ 1226 1227 function get_edit_post_link( $id = 0, $context = 'display' ) { … … 1242 1243 return; 1243 1244 1244 if ( ! in_array( $post->post_type, get_post_types( array( 'show_ui' => true ) ) ) ) { 1245 $allowed = array_merge( array( 1246 'revision', 1247 ), get_post_types( array( 1248 'show_ui' => true, 1249 ) ) ); 1250 1251 if ( ! in_array( $post->post_type, $allowed ) ) { 1245 1252 return; 1246 1253 }
Note: See TracChangeset
for help on using the changeset viewer.