Changeset 38983 for trunk/src/wp-admin/edit.php
- Timestamp:
- 10/27/2016 08:38:09 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit.php
r38958 r38983 304 304 ?> 305 305 <div class="wrap"> 306 <h1 ><?php306 <h1 class="wp-heading-inline"><?php 307 307 echo esc_html( $post_type_object->labels->name ); 308 if ( current_user_can( $post_type_object->cap->create_posts ) ) 308 ?></h1> 309 310 <?php 311 if ( current_user_can( $post_type_object->cap->create_posts ) ) { 309 312 echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="page-title-action">' . esc_html( $post_type_object->labels->add_new ) . '</a>'; 313 } 310 314 311 315 if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { … … 313 317 printf( ' <span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', get_search_query() ); 314 318 } 315 ?></h1> 319 ?> 320 321 <hr class="wp-header-end"> 316 322 317 323 <?php
Note: See TracChangeset
for help on using the changeset viewer.