Changeset 24527
- Timestamp:
- 06/27/2013 09:59:48 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r24478 r24527 1221 1221 $sendback = admin_url( 'edit.php' ); 1222 1222 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; 1229 1227 } 1230 1228
Note: See TracChangeset
for help on using the changeset viewer.