This commit is contained in:
root@pico committed 2015-05-01 21:20:47 +02:00
1 parent 70d2335bba
commit 7428b67da5
1086 files changed
+94145 -59082

No files matched your search

+4 -2
View File
@@ -23,7 +23,7 @@ elseif ( isset( $_POST['post_ID'] ) )
else
$post_id = $post_ID = 0;
$post = $post_type = $post_type_object = null;
global $post_type, $post_type_object, $post;
if ( $post_id )
$post = get_post( $post_id );
@@ -95,7 +95,9 @@ if ( ! $sendback ||
$sendback = admin_url( 'upload.php' );
} else {
$sendback = admin_url( 'edit.php' );
$sendback .= ( ! empty( $post_type ) ) ? '?post_type=' . $post_type : '';
if ( ! empty( $post_type ) ) {
$sendback = add_query_arg( 'post_type', $post_type, $sendback );
}
}
} else {
$sendback = remove_query_arg( array('trashed', 'untrashed', 'deleted', 'ids'), $sendback );