Skip to content

Commit

Permalink
Post locked dialog: remove the "Go to" part from the button as it's n…
Browse files Browse the repository at this point in the history
…ot translatable. Fixes #24547.

git-svn-id: http://core.svn.wordpress.org/trunk@24527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
azaozz committed Jun 27, 2013
1 parent 6d96d25 commit 7862ae7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions wp-admin/includes/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 7862ae7

Please sign in to comment.