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
This commit is contained in:
parent
836ebd6f0d
commit
a9d0ac3c6f
|
@ -1220,12 +1220,10 @@ function _admin_notice_post_locked() {
|
||||||
} else {
|
} else {
|
||||||
$sendback = admin_url( 'edit.php' );
|
$sendback = admin_url( 'edit.php' );
|
||||||
|
|
||||||
if ( 'post' != $post->post_type && ( $post_type_object = get_post_type_object( $post->post_type ) ) ) {
|
if ( 'post' != $post->post_type )
|
||||||
$sendback .= '?post_type=' . $post->post_type;
|
$sendback = add_query_arg( 'post_type', $post->post_type, $sendback );
|
||||||
$sendback_text = sprintf( _x('Go to All %s', 'post type general name: Posts, Pages, etc.'), $post_type_object->labels->name );
|
|
||||||
} else {
|
$sendback_text = get_post_type_object( $post->post_type )->labels->all_items;
|
||||||
$sendback_text = __('Go to All Posts');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$hidden = $locked ? '' : ' hidden';
|
$hidden = $locked ? '' : ' hidden';
|
||||||
|
|
Loading…
Reference in New Issue