Changeset 25140
- Timestamp:
- 08/27/2013 08:48:40 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r24396 r25140 302 302 303 303 case 'parent': 304 if ( $post->post_parent > 0 && get_post( $post->post_parent ) ) { 304 if ( $post->post_parent > 0 ) 305 $parent = get_post( $post->post_parent ); 306 else 307 $parent = false; 308 309 if ( $parent ) { 305 310 $title = _draft_or_post_title( $post->post_parent ); 311 $parent_type = get_post_type_object( $parent->post_type ); 306 312 ?> 307 313 <td <?php echo $attributes ?>><strong> 308 <?php if ( current_user_can( 'edit_post', $post->post_parent ) ) { ?>314 <?php if ( current_user_can( 'edit_post', $post->post_parent ) && $parent_type->show_ui ) { ?> 309 315 <a href="<?php echo get_edit_post_link( $post->post_parent ); ?>"> 310 316 <?php echo $title ?></a><?php
Note: See TracChangeset
for help on using the changeset viewer.