Changeset 25527
- Timestamp:
- 09/20/2013 08:30:13 PM (12 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-form-advanced.php
r25461 r25527 316 316 echo esc_html( $title ); 317 317 if ( isset( $post_new_file ) && current_user_can( $post_type_object->cap->create_posts ) ) 318 echo ' <a href="' . esc_url( $post_new_file) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>';318 echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>'; 319 319 ?></h2> 320 320 <?php if ( $notice ) : ?> -
trunk/src/wp-admin/edit.php
r24593 r25527 232 232 echo esc_html( $post_type_object->labels->name ); 233 233 if ( current_user_can( $post_type_object->cap->create_posts ) ) 234 echo ' <a href="' . esc_url( $post_new_file) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>';234 echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>'; 235 235 if ( ! empty( $_REQUEST['s'] ) ) 236 236 printf( ' <span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() );
Note: See TracChangeset
for help on using the changeset viewer.