From d729fbf8e603eaf0fb4233cc800fb17c829cd60d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helen=20Hou-Sand=C3=AD?= Date: Fri, 20 Sep 2013 20:31:09 +0000 Subject: [PATCH] Allow the "Add New" URL on post edit screens to be filtered via `admin_url()`. props SergeyBiryukov, jeremyfelt, c3mdigital. fixes #18504. Built from https://develop.svn.wordpress.org/trunk@25527 git-svn-id: http://core.svn.wordpress.org/trunk@25447 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-form-advanced.php | 2 +- wp-admin/edit.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index b825284bdf..3dbbb6bd85 100644 --- a/wp-admin/edit-form-advanced.php +++ b/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/wp-admin/edit.php b/wp-admin/edit.php index 65fd03426a..3c5c125644 100644 --- a/wp-admin/edit.php +++ b/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() ); ?>