WordPress.org

Make WordPress Core

Ticket #24547: 24547.patch

File 24547.patch, 867 bytes (added by azaozz, 2 years ago)
  • wp-admin/includes/post.php

     
    12091209        } else { 
    12101210                $sendback = admin_url( 'edit.php' ); 
    12111211 
    1212                 if ( 'post' != $post->post_type && ( $post_type_object = get_post_type_object( $post->post_type ) ) ) { 
    1213                         $sendback .= '?post_type=' . $post->post_type; 
    1214                         $sendback_text = sprintf( _x('Go to All %s', 'post type general name: Posts, Pages, etc.'), $post_type_object->labels->name ); 
    1215                 } else { 
    1216                         $sendback_text = __('Go to All Posts'); 
    1217                 } 
     1212                if ( 'post' != $post->post_type ) 
     1213                        $sendback = add_query_arg( 'post_type', $post->post_type, $sendback ); 
     1214 
     1215                $sendback_text = get_post_type_object( $post->post_type )->labels->all_items; 
    12181216        } 
    12191217 
    12201218        $hidden = $locked ? '' : ' hidden';