Changeset 14025
- Timestamp:
- 04/07/2010 05:08:37 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r14024 r14025 896 896 897 897 898 <?php if ( $bulk ) : ?> 898 <?php 899 900 if ( post_type_supports( $screen->post_type, 'title' ) ) : 901 if ( $bulk ) : ?> 899 902 <div id="bulk-title-div"> 900 903 <div id="bulk-titles"></div> … … 908 911 </label> 909 912 910 <?php endif; // $bulk ?>911 912 913 <?php if ( !$bulk ) : ?>914 915 913 <label> 916 914 <span class="title"><?php _e( 'Slug' ); ?></span> … … 918 916 </label> 919 917 918 <?php endif; // $bulk 919 endif; // post_type_supports title ?> 920 921 <?php if ( !$bulk ) : ?> 920 922 <label><span class="title"><?php _e( 'Date' ); ?></span></label> 921 923 <div class="inline-edit-date"> … … 926 928 <?php endif; // $bulk 927 929 930 if ( post_type_supports( $screen->post_type, 'author' ) ) : 928 931 $authors = get_editable_user_ids( $current_user->id, true, $screen->post_type ); // TODO: ROLE SYSTEM 929 932 $authors_dropdown = ''; … … 940 943 ?> 941 944 942 <?php if ( !$bulk ) : echo $authors_dropdown; ?> 945 <?php if ( !$bulk ) echo $authors_dropdown; 946 endif; // post_type_supports author 947 948 if ( !$bulk ) : 949 ?> 943 950 944 951 <div class="inline-edit-group"> … … 987 994 988 995 <?php 989 if ( $bulk )996 if ( post_type_supports( $screen->post_type, 'author' ) && $bulk ) 990 997 echo $authors_dropdown; 991 998 ?> … … 1004 1011 </label> 1005 1012 1006 <?php if ( !$bulk ) : ?> 1013 <?php if ( post_type_supports( $screen->post_type, 'page-attributes' ) ) : 1014 if ( !$bulk ) : ?> 1007 1015 1008 1016 <label> … … 1024 1032 </label> 1025 1033 1026 <?php endif; // $post_type_object->hierarchical ?> 1034 <?php 1035 endif; // post_type_supports page-attributes 1036 endif; // $post_type_object->hierarchical ?> 1027 1037 1028 1038 <?php if ( count($flat_taxonomies) && !$bulk ) : ?> … … 1039 1049 <?php endif; // count($flat_taxonomies) && !$bulk ?> 1040 1050 1041 <?php if ( $bulk ) : ?> 1051 <?php if ( post_type_supports( $screen->post_type, 'comments' ) || post_type_supports( $screen->post_type, 'trackbacks' ) ) : 1052 if ( $bulk ) : ?> 1042 1053 1043 1054 <div class="inline-edit-group"> 1055 <?php if ( post_type_supports( $screen->post_type, 'comments' ) ) : ?> 1044 1056 <label class="alignleft"> 1045 1057 <span class="title"><?php _e( 'Comments' ); ?></span> … … 1050 1062 </select> 1051 1063 </label> 1052 1064 <?php endif; if ( post_type_supports( $screen->post_type, 'trackbacks' ) ) : ?> 1053 1065 <label class="alignright"> 1054 1066 <span class="title"><?php _e( 'Pings' ); ?></span> … … 1059 1071 </select> 1060 1072 </label> 1073 <?php endif; ?> 1061 1074 </div> 1062 1075 … … 1064 1077 1065 1078 <div class="inline-edit-group"> 1079 <?php if ( post_type_supports( $screen->post_type, 'comments' ) ) : ?> 1066 1080 <label class="alignleft"> 1067 1081 <input type="checkbox" name="comment_status" value="open" /> 1068 1082 <span class="checkbox-title"><?php _e( 'Allow Comments' ); ?></span> 1069 1083 </label> 1070 1084 <?php endif; if ( post_type_supports( $screen->post_type, 'trackbacks' ) ) : ?> 1071 1085 <label class="alignleft"> 1072 1086 <input type="checkbox" name="ping_status" value="open" /> 1073 1087 <span class="checkbox-title"><?php _e( 'Allow Pings' ); ?></span> 1074 1088 </label> 1089 <?php endif; ?> 1075 1090 </div> 1076 1091 1077 <?php endif; // $bulk ?>1078 1092 <?php endif; // $bulk 1093 endif; // post_type_supports comments or pings ?> 1079 1094 1080 1095 <div class="inline-edit-group">
Note: See TracChangeset
for help on using the changeset viewer.