Ticket #20164: 20164.1.patch
File 20164.1.patch, 3.6 KB (added by , 13 years ago) |
---|
-
wp-admin/includes/template.php
1282 1282 * 1283 1283 * @param unknown_type $found_action 1284 1284 */ 1285 function find_posts_div( $found_action = '') {1285 function find_posts_div( $found_action = '' ) { 1286 1286 ?> 1287 1287 <div id="find-posts" class="find-box" style="display:none;"> 1288 <div id="find-posts-head" class="find-box-head"><?php _e( 'Find Posts or Pages'); ?></div>1288 <div id="find-posts-head" class="find-box-head"><?php _e( 'Find Posts' ); ?></div> 1289 1289 <div class="find-box-inside"> 1290 1290 <div class="find-box-search"> 1291 1291 <?php if ( $found_action ) { ?> … … 1296 1296 <?php wp_nonce_field( 'find-posts', '_ajax_nonce', false ); ?> 1297 1297 <label class="screen-reader-text" for="find-posts-input"><?php _e( 'Search' ); ?></label> 1298 1298 <input type="text" id="find-posts-input" name="ps" value="" /> 1299 <input type="button" id="find-posts-search" value="<?php esc_attr_e( 'Search' ); ?>" class="button" /> <br />1299 <input type="button" id="find-posts-search" value="<?php esc_attr_e( 'Search' ); ?>" class="button" /> 1300 1300 1301 1301 <?php 1302 $post_types = get_post_types( array('public' => true), 'objects' ); 1303 foreach ( $post_types as $post ) { 1304 if ( 'attachment' == $post->name ) 1305 continue; 1302 $post_types = get_post_types( array( 'show_ui' => true ), 'objects' ); 1303 $post_types = apply_filters( 'find_posts_div_posttypes', $post_types ); 1304 1305 if( count( $post_types ) > 0 ) { 1306 $post_type_current = reset( $post_types )->name; 1307 1308 echo '<p>'; 1309 foreach ( $post_types as $post_type ) { 1310 if( current_user_can( $post_type->cap->edit_posts ) ) { 1311 ?> 1312 <input type="radio" name="find-posts-what" id="find-posts-<?php echo esc_attr( $post_type->name ); ?>" value="<?php echo esc_attr( $post_type->name ); ?>" <?php checked( $post_type->name, $post_type_current ); ?> /> 1313 <label for="find-posts-<?php echo esc_attr( $post_type->name ); ?>"><?php echo $post_type->label; ?></label> 1314 <?php 1315 } 1316 } 1317 echo '</p>'; 1318 } 1306 1319 ?> 1307 <input type="radio" name="find-posts-what" id="find-posts-<?php echo esc_attr($post->name); ?>" value="<?php echo esc_attr($post->name); ?>" <?php checked($post->name, 'post'); ?> />1308 <label for="find-posts-<?php echo esc_attr($post->name); ?>"><?php echo $post->label; ?></label>1309 <?php1310 } ?>1311 1320 </div> 1312 1321 <div id="find-posts-response"></div> 1313 1322 </div> 1314 1323 <div class="find-box-buttons"> 1315 <input id="find-posts-close" type="button" class="button alignleft" value="<?php esc_attr_e( 'Close'); ?>" />1324 <input id="find-posts-close" type="button" class="button alignleft" value="<?php esc_attr_e( 'Close' ); ?>" /> 1316 1325 <?php submit_button( __( 'Select' ), 'button-primary alignright', 'find-posts-submit', false ); ?> 1317 1326 </div> 1318 1327 </div> -
wp-admin/css/wp-admin.dev.css
3936 3936 padding: 33px 5px 40px; 3937 3937 position: absolute; 3938 3938 z-index: 1000; 3939 3940 border: 1px solid #e5e5e5; 3941 -moz-box-shadow: rgba(200, 200, 200, 0.7) 0px 4px 10px -1px; 3942 -webkit-box-shadow: rgba(200, 200, 200, 0.7) 0px 4px 10px -1px; 3943 box-shadow: rgba(200, 200, 200, 0.7) 0px 4px 10px -1px; 3939 3944 } 3940 3945 3941 3946 .find-box-head { … … 3956 3961 } 3957 3962 3958 3963 .find-box-search { 3959 padding: 12px ;3964 padding: 12px 12px 6px 12px; 3960 3965 border-width: 1px; 3961 3966 border-style: none none solid; 3962 3967 } 3963 3968 3969 .find-box-search p { 3970 margin: 0.5em 0 0 1px; 3971 } 3972 3964 3973 #find-posts-response { 3965 3974 margin: 8px 0; 3966 3975 padding: 0 1px;