From a9d0ac3c6f5a0d90a261646adfd1502638ba06c5 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 27 Jun 2013 21:59:48 +0000 Subject: [PATCH] Post locked dialog: remove the "Go to" part from the button as it's not translatable. Fixes #24547. git-svn-id: https://develop.svn.wordpress.org/trunk@24527 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/post.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index a2ad81dd05..da6dd4fd91 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -1220,12 +1220,10 @@ function _admin_notice_post_locked() { } else { $sendback = admin_url( 'edit.php' ); - if ( 'post' != $post->post_type && ( $post_type_object = get_post_type_object( $post->post_type ) ) ) { - $sendback .= '?post_type=' . $post->post_type; - $sendback_text = sprintf( _x('Go to All %s', 'post type general name: Posts, Pages, etc.'), $post_type_object->labels->name ); - } else { - $sendback_text = __('Go to All Posts'); - } + if ( 'post' != $post->post_type ) + $sendback = add_query_arg( 'post_type', $post->post_type, $sendback ); + + $sendback_text = get_post_type_object( $post->post_type )->labels->all_items; } $hidden = $locked ? '' : ' hidden';