Ticket #21391: attachment-show-ui.diff
File attachment-show-ui.diff, 3.9 KB (added by , 13 years ago) |
---|
-
wp-includes/version.php
18 18 * 19 19 * @global string $tinymce_version 20 20 */ 21 $tinymce_version = '3541-2136 0';21 $tinymce_version = '3541-21361'; 22 22 23 23 /** 24 24 * Holds the required PHP version -
wp-includes/post.php
52 52 53 53 register_post_type( 'attachment', array( 54 54 'labels' => array( 55 'name' => __( 'Media' ), 55 'name' => _x('Media', 'post type general name'), 56 'singular_name' => _x( 'Media Item', 'post type singular name' ), 57 'add_new' => _x( 'Add New', 'media item'), 58 'add_new_item' => __( 'Add New Media' ), 56 59 'edit_item' => __( 'Edit Media' ), 60 'new_item' => __( 'New Media Item' ), 61 'view_item' => __( 'View Attachment Page' ), 62 'search_items' => __( 'Search Media' ), 63 'not_found' => __( 'No media found.' ), 64 'not_found_in_trash' => __('No media found in Trash.'), 65 'parent_item_colon' => __('Parent:'), 66 'all_items' => __( 'All Media' ), 57 67 ), 58 68 'public' => true, 59 'show_ui' => false,69 'show_ui' => true, 60 70 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 61 '_edit_link' => ' media.php?attachment_id=%d', /* internal use only. don't use this when registering your own post type. */71 '_edit_link' => 'post.php?post=%d', /* internal use only. don't use this when registering your own post type. */ 62 72 'capability_type' => 'post', 63 73 'map_meta_cap' => true, 64 74 'hierarchical' => false, … … 66 76 'query_var' => false, 67 77 'show_in_nav_menus' => false, 68 78 'delete_with_user' => true, 69 'supports' => array( ' comments', 'author' ),79 'supports' => array( 'title', 'author', 'comments' ), 70 80 ) ); 71 81 72 82 register_post_type( 'revision', array( -
wp-admin/includes/post.php
1082 1082 1083 1083 list($permalink, $post_name) = get_sample_permalink($post->ID, $new_title, $new_slug); 1084 1084 1085 if ( 'publish' == $post->post_status) {1085 if ( 'publish' == get_post_status( $post ) ) { 1086 1086 $ptype = get_post_type_object($post->post_type); 1087 1087 $view_post = $ptype->labels->view_item; 1088 1088 $title = __('Click to edit this part of the permalink'); -
wp-admin/includes/screen.php
96 96 if ( $use_defaults ) { 97 97 $hidden = array(); 98 98 if ( 'post' == $screen->base ) { 99 if ( 'post' == $screen->post_type || 'page' == $screen->post_type )99 if ( 'post' == $screen->post_type || 'page' == $screen->post_type || 'attachment' == $screen->post_type ) 100 100 $hidden = array('slugdiv', 'trackbacksdiv', 'postcustom', 'postexcerpt', 'commentstatusdiv', 'commentsdiv', 'authordiv', 'revisionsdiv'); 101 101 else 102 102 $hidden = array( 'slugdiv' ); -
wp-admin/post.php
31 31 if ( $post ) { 32 32 $post_type = $post->post_type; 33 33 $post_type_object = get_post_type_object( $post_type ); 34 $parent_file = 'upload.php'; 34 35 } 35 36 36 37 /** … … 148 149 $parent_file = "edit.php"; 149 150 $submenu_file = "edit.php"; 150 151 $post_new_file = "post-new.php"; 152 } elseif ( 'attachment' === $post_type ) { 153 $parent_file = 'upload.php'; 154 $submenu_file = 'upload.php'; 155 $post_new_file = 'media-new.php'; 151 156 } else { 152 157 if ( isset( $post_type_object ) && $post_type_object->show_in_menu && $post_type_object->show_in_menu !== true ) 153 158 $parent_file = $post_type_object->show_in_menu;