Ticket #35076: 35076.patch
File 35076.patch, 3.9 KB (added by , 9 years ago) |
---|
-
src/wp-admin/css/edit.css
303 303 padding: 3px 5px 5px; 304 304 } 305 305 306 #set-post-thumbnail { 307 display: inline-block; 308 max-width: 100%; 309 } 310 306 311 #postimagediv .inside img { 307 312 max-width: 100%; 308 313 height: auto; 309 314 width: auto; 315 vertical-align: top; 310 316 background-image: -webkit-linear-gradient(45deg, #c4c4c4 25%, transparent 25%, transparent 75%, #c4c4c4 75%, #c4c4c4), -webkit-linear-gradient(45deg, #c4c4c4 25%, transparent 25%, transparent 75%, #c4c4c4 75%, #c4c4c4); 311 317 background-image: linear-gradient(45deg, #c4c4c4 25%, transparent 25%, transparent 75%, #c4c4c4 75%, #c4c4c4), linear-gradient(45deg, #c4c4c4 25%, transparent 25%, transparent 75%, #c4c4c4 75%, #c4c4c4); 312 318 background-position: 0 0, 10px 10px; -
src/wp-admin/includes/post.php
1380 1380 1381 1381 $post = get_post( $post ); 1382 1382 $post_type_object = get_post_type_object( $post->post_type ); 1383 $set_thumbnail_link = '<p class="hide-if-no-js"><a title="%s" href="%s" id="set-post-thumbnail" class="thickbox">%s</a></p>';1383 $set_thumbnail_link = '<p class="hide-if-no-js"><a href="%s" id="set-post-thumbnail" aria-describedby="set-post-thumbnail-desc" class="thickbox">%s</a></p>'; 1384 1384 $upload_iframe_src = get_upload_iframe_src( 'image', $post->ID ); 1385 1385 1386 1386 $content = sprintf( $set_thumbnail_link, 1387 esc_attr( $post_type_object->labels->set_featured_image ),1388 1387 esc_url( $upload_iframe_src ), 1389 1388 esc_html( $post_type_object->labels->set_featured_image ) 1390 1389 ); … … 1416 1415 if ( !empty( $thumbnail_html ) ) { 1417 1416 $ajax_nonce = wp_create_nonce( 'set_post_thumbnail-' . $post->ID ); 1418 1417 $content = sprintf( $set_thumbnail_link, 1419 esc_attr( $post_type_object->labels->set_featured_image ),1420 1418 esc_url( $upload_iframe_src ), 1421 1419 $thumbnail_html 1422 1420 ); 1421 $content .= '<p class="hide-if-no-js howto" id="set-post-thumbnail-desc">' . esc_html( $post_type_object->labels->edit_update_featured_image ) . '</p>'; 1423 1422 $content .= '<p class="hide-if-no-js"><a href="#" id="remove-post-thumbnail" onclick="WPRemoveThumbnail(\'' . $ajax_nonce . '\');return false;">' . esc_html( $post_type_object->labels->remove_featured_image ) . '</a></p>'; 1424 1423 } 1425 1424 } -
src/wp-includes/post.php
1340 1340 * - filter_items_list - String for the table views hidden heading. 1341 1341 * - items_list_navigation - String for the table pagination hidden heading. 1342 1342 * - items_list - String for the table hidden heading. 1343 * - edit_update_featured_image - Default is Click the image to edit or update. 1343 1344 * 1344 1345 * Above, the first default value is for non-hierarchical post types (like posts) 1345 1346 * and the second one is for hierarchical post types (like pages). … … 1349 1350 * and `use_featured_image` labels. 1350 1351 * @since 4.4.0 Added the `insert_into_item`, `uploaded_to_this_item`, `filter_items_list`, 1351 1352 * `items_list_navigation`, and `items_list` labels. 1353 * @since 4.5.0 Added the `edit_update_featured_image` label. 1352 1354 * 1353 1355 * @access private 1354 1356 * … … 1379 1381 'filter_items_list' => array( __( 'Filter posts list' ), __( 'Filter pages list' ) ), 1380 1382 'items_list_navigation' => array( __( 'Posts list navigation' ), __( 'Pages list navigation' ) ), 1381 1383 'items_list' => array( __( 'Posts list' ), __( 'Pages list' ) ), 1384 'edit_update_featured_image' => array( __( 'Click the image to edit or update' ), __( 'Click the image to edit or update' ) ), 1382 1385 ); 1383 1386 $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; 1384 1387