From afe1b7a6c9871ead110d64ef127dc99b06ef7a40 Mon Sep 17 00:00:00 2001 From: Helen Hou-Sandi Date: Fri, 20 Sep 2013 20:30:13 +0000 Subject: [PATCH] Allow the "Add New" URL on post edit screens to be filtered via `admin_url()`. props SergeyBiryukov, jeremyfelt, c3mdigital. fixes #18504. git-svn-id: https://develop.svn.wordpress.org/trunk@25527 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/edit-form-advanced.php | 2 +- src/wp-admin/edit.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/edit-form-advanced.php b/src/wp-admin/edit-form-advanced.php index b825284bdf..3dbbb6bd85 100644 --- a/src/wp-admin/edit-form-advanced.php +++ b/src/wp-admin/edit-form-advanced.php @@ -315,7 +315,7 @@ require_once('./admin-header.php');

cap->create_posts ) ) - echo ' ' . esc_html( $post_type_object->labels->add_new ) . ''; + echo ' ' . esc_html( $post_type_object->labels->add_new ) . ''; ?>

diff --git a/src/wp-admin/edit.php b/src/wp-admin/edit.php index 65fd03426a..3c5c125644 100644 --- a/src/wp-admin/edit.php +++ b/src/wp-admin/edit.php @@ -231,7 +231,7 @@ require_once('./admin-header.php');

labels->name ); if ( current_user_can( $post_type_object->cap->create_posts ) ) - echo ' ' . esc_html( $post_type_object->labels->add_new ) . ''; + echo ' ' . esc_html( $post_type_object->labels->add_new ) . ''; if ( ! empty( $_REQUEST['s'] ) ) printf( ' ' . __('Search results for “%s”') . '', get_search_query() ); ?>