Make WordPress Core

Changeset 24527


Ignore:
Timestamp:
06/27/2013 09:59:48 PM (11 years ago)
Author:
azaozz
Message:

Post locked dialog: remove the "Go to" part from the button as it's not translatable. Fixes #24547.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r24478 r24527  
    12211221        $sendback = admin_url( 'edit.php' );
    12221222
    1223         if ( 'post' != $post->post_type && ( $post_type_object = get_post_type_object( $post->post_type ) ) ) {
    1224             $sendback .= '?post_type=' . $post->post_type;
    1225             $sendback_text = sprintf( _x('Go to All %s', 'post type general name: Posts, Pages, etc.'), $post_type_object->labels->name );
    1226         } else {
    1227             $sendback_text = __('Go to All Posts');
    1228         }
     1223        if ( 'post' != $post->post_type )
     1224            $sendback = add_query_arg( 'post_type', $post->post_type, $sendback );
     1225
     1226        $sendback_text = get_post_type_object( $post->post_type )->labels->all_items;
    12291227    }
    12301228
Note: See TracChangeset for help on using the changeset viewer.