Ticket #45317: 45317.2.diff
| File 45317.2.diff, 20.6 KB (added by , 7 years ago) |
|---|
-
src/wp-admin/edit.php
239 239 '<ul>' . 240 240 '<li>' . __( '<strong>Edit</strong> takes you to the editing screen for that post. You can also reach that screen by clicking on the post title.' ) . '</li>' . 241 241 '<li>' . __( '<strong>Quick Edit</strong> provides inline access to the metadata of your post, allowing you to update post details without leaving this screen.' ) . '</li>' . 242 '<li>' . __( '<strong>Trash</strong> removes your post from this list and places it in the trash, from which you can permanently delete it.' ) . '</li>' .242 '<li>' . __( '<strong>Trash</strong> removes your post from this list and places it in the Trash, from which you can permanently delete it.' ) . '</li>' . 243 243 '<li>' . __( '<strong>Preview</strong> will show you what your draft post will look like if you publish it. View will take you to your live site to view the post. Which link is available depends on your post’s status.' ) . '</li>' . 244 244 '</ul>', 245 245 ) … … 249 249 'id' => 'bulk-actions', 250 250 'title' => __( 'Bulk Actions' ), 251 251 'content' => 252 '<p>' . __( 'You can also edit or move multiple posts to the trash at once. Select the posts you want to act on using the checkboxes, then select the action you want to take from the Bulk Actions menu and click Apply.' ) . '</p>' .252 '<p>' . __( 'You can also edit or move multiple posts to the Trash at once. Select the posts you want to act on using the checkboxes, then select the action you want to take from the Bulk Actions menu and click Apply.' ) . '</p>' . 253 253 '<p>' . __( 'When using Bulk Edit, you can change the metadata (categories, author, etc.) for all selected posts at once. To remove a post from the grouping, just click the x next to its name in the Bulk Edit area that appears.' ) . '</p>', 254 254 ) 255 255 ); -
src/wp-admin/includes/template.php
524 524 function wp_comment_trashnotice() { 525 525 ?> 526 526 <div class="hidden" id="trash-undo-holder"> 527 <div class="trash-undo-inside"><?php printf( __( 'Comment by %s moved to the trash.' ), '<strong></strong>' ); ?> <span class="undo untrash"><a href="#"><?php _e( 'Undo' ); ?></a></span></div>527 <div class="trash-undo-inside"><?php printf( __( 'Comment by %s moved to the Trash.' ), '<strong></strong>' ); ?> <span class="undo untrash"><a href="#"><?php _e( 'Undo' ); ?></a></span></div> 528 528 </div> 529 529 <div class="hidden" id="spam-undo-holder"> 530 530 <div class="spam-undo-inside"><?php printf( __( 'Comment by %s marked as spam.' ), '<strong></strong>' ); ?> <span class="undo unspam"><a href="#"><?php _e( 'Undo' ); ?></a></span></div> -
src/wp-admin/options-discussion.php
195 195 <tr> 196 196 <th scope="row"><?php _e( 'Comment Blacklist' ); ?></th> 197 197 <td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Comment Blacklist' ); ?></span></legend> 198 <p><label for="blacklist_keys"><?php _e( 'When a comment contains any of these words in its content, name, URL, email, or IP address, it will be put in the trash. One word or IP address per line. It will match inside words, so “press” will match “WordPress”.' ); ?></label></p>198 <p><label for="blacklist_keys"><?php _e( 'When a comment contains any of these words in its content, name, URL, email, or IP address, it will be put in the Trash. One word or IP address per line. It will match inside words, so “press” will match “WordPress”.' ); ?></label></p> 199 199 <p> 200 200 <textarea name="blacklist_keys" rows="10" cols="50" id="blacklist_keys" class="large-text code"><?php echo esc_textarea( get_option( 'blacklist_keys' ) ); ?></textarea> 201 201 </p> -
src/wp-admin/privacy.php
106 106 'page_for_privacy_policy', 107 107 sprintf( 108 108 /* translators: URL to Pages Trash */ 109 __( 'The currently selected Privacy Policy page is in the trash. Please create or select a new Privacy Policy page or <a href="%s">restore the current page</a>.' ),109 __( 'The currently selected Privacy Policy page is in the Trash. Please create or select a new Privacy Policy page or <a href="%s">restore the current page</a>.' ), 110 110 'edit.php?post_status=trash&post_type=page' 111 111 ), 112 112 'error' -
src/wp-admin/upload.php
321 321 322 322 if ( ! empty( $_GET['trashed'] ) && $trashed = absint( $_GET['trashed'] ) ) { 323 323 if ( 1 == $trashed ) { 324 $message = __( 'Media file moved to the trash.' );324 $message = __( 'Media file moved to the Trash.' ); 325 325 } else { 326 326 /* translators: %s: number of media files */ 327 $message = _n( '%s media file moved to the trash.', '%s media files moved to the trash.', $trashed );327 $message = _n( '%s media file moved to the Trash.', '%s media files moved to the Trash.', $trashed ); 328 328 } 329 329 $message = sprintf( $message, number_format_i18n( $trashed ) ); 330 330 $message .= ' <a href="' . esc_url( wp_nonce_url( 'upload.php?doaction=undo&action=untrash&ids=' . ( isset( $_GET['ids'] ) ? $_GET['ids'] : '' ), 'bulk-media' ) ) . '">' . __( 'Undo' ) . '</a>'; … … 333 333 334 334 if ( ! empty( $_GET['untrashed'] ) && $untrashed = absint( $_GET['untrashed'] ) ) { 335 335 if ( 1 == $untrashed ) { 336 $message = __( 'Media file restored from the trash.' );336 $message = __( 'Media file restored from the Trash.' ); 337 337 } else { 338 338 /* translators: %s: number of media files */ 339 $message = _n( '%s media file restored from the trash.', '%s media files restored from the trash.', $untrashed );339 $message = _n( '%s media file restored from the Trash.', '%s media files restored from the Trash.', $untrashed ); 340 340 } 341 341 $message = sprintf( $message, number_format_i18n( $untrashed ) ); 342 342 $_SERVER['REQUEST_URI'] = remove_query_arg( array( 'untrashed' ), $_SERVER['REQUEST_URI'] ); … … 345 345 $messages[1] = __( 'Media file updated.' ); 346 346 $messages[2] = __( 'Media file permanently deleted.' ); 347 347 $messages[3] = __( 'Error saving media file.' ); 348 $messages[4] = __( 'Media file moved to the trash.' ) . ' <a href="' . esc_url( wp_nonce_url( 'upload.php?doaction=undo&action=untrash&ids=' . ( isset( $_GET['ids'] ) ? $_GET['ids'] : '' ), 'bulk-media' ) ) . '">' . __( 'Undo' ) . '</a>';349 $messages[5] = __( 'Media file restored from the trash.' );348 $messages[4] = __( 'Media file moved to the Trash.' ) . ' <a href="' . esc_url( wp_nonce_url( 'upload.php?doaction=undo&action=untrash&ids=' . ( isset( $_GET['ids'] ) ? $_GET['ids'] : '' ), 'bulk-media' ) ) . '">' . __( 'Undo' ) . '</a>'; 349 $messages[5] = __( 'Media file restored from the Trash.' ); 350 350 351 351 if ( ! empty( $_GET['message'] ) && isset( $messages[ $_GET['message'] ] ) ) { 352 352 $message = $messages[ $_GET['message'] ]; -
src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
99 99 'force' => array( 100 100 'type' => 'boolean', 101 101 'default' => false, 102 'description' => __( 'Whether to bypass trash and force deletion.' ),102 'description' => __( 'Whether to bypass Trash and force deletion.' ), 103 103 ), 104 104 'password' => array( 105 105 'description' => __( 'The password for the parent post of the comment (if the post is password protected).' ), … … 815 815 /** 816 816 * Filters whether a comment can be trashed. 817 817 * 818 * Return false to disable trash support for the post.818 * Return false to disable Trash support for the post. 819 819 * 820 820 * @since 4.7.0 821 821 * -
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
117 117 'force' => array( 118 118 'type' => 'boolean', 119 119 'default' => false, 120 'description' => __( 'Whether to bypass trash and force deletion.' ),120 'description' => __( 'Whether to bypass Trash and force deletion.' ), 121 121 ), 122 122 ), 123 123 ), … … 810 810 * 811 811 * The dynamic portion of the hook name, `$this->post_type`, refers to the post type slug. 812 812 * 813 * Pass false to disable trash support for the post.813 * Pass false to disable Trash support for the post. 814 814 * 815 815 * @since 4.7.0 816 816 * … … 849 849 } 850 850 851 851 // (Note that internally this falls through to `wp_delete_post` if 852 // the trash is disabled.)852 // the Trash is disabled.) 853 853 $result = wp_trash_post( $id ); 854 854 $post = get_post( $id ); 855 855 $response = $this->prepare_item_for_response( $post, $request ); -
src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php
417 417 * 418 418 * @since 4.7.0 419 419 * 420 * @param (mixed) $result The revision object (if it was deleted or moved to the trash successfully)421 * or false (failure). If the revision was moved to the trash, $result represents420 * @param (mixed) $result The revision object (if it was deleted or moved to the Trash successfully) 421 * or false (failure). If the revision was moved to the Trash, $result represents 422 422 * its new state; if it was deleted, $result represents its state before deletion. 423 423 * @param WP_REST_Request $request The request sent to the API. 424 424 */ -
src/wp-includes/script-loader.php
1134 1134 'upload_stopped' => __( 'Upload stopped.' ), 1135 1135 'dismiss' => __( 'Dismiss' ), 1136 1136 'crunching' => __( 'Crunching…' ), 1137 'deleted' => __( ' moved to the trash.' ),1137 'deleted' => __( 'Moved to the Trash.' ), 1138 1138 'error_uploading' => __( '“%s” has failed to upload.' ), 1139 1139 ); 1140 1140 -
tests/phpunit/data/formatting/whole-posts.php
52 52 Cu bonorum graecis ius. Duo id ancillae probatus. Tota latine pri an. Cum ei iudico semper. Eum in blandit voluptaria. 53 53 54 54 Illud debet vitae ex vis numquam.'), 55 55 56 56 /* DIVIDER */ 57 57 58 58 // based on https://core.trac.wordpress.org/attachment/ticket/29557/ChatTranscript.txt … … 445 445 <p class="triangle-right left">A very significant, if unsurprising update. 446 446 blown away</p> 447 447 <img class="alignleft" src="http://www.example.com/postimages/2013/aarone.jpeg" alt="" width="50" height="50" /> 448 <p class="triangle-right lefttwo">Blown away by the trash can.</p>448 <p class="triangle-right lefttwo">Blown away by the Trash can.</p> 449 449 <img class="alignleft" src="http://www.example.com/postimages/2013/bobm.jpeg" alt="" width="50" height="50" /> 450 450 <p class="triangle-right left">That is one powerful fan.</p> 451 451 <img class="alignright" src="http://www.example.com/postimages/2013/philipmetroid.jpg" alt="" width="50" height="50" /> … … 470 470 <p class="triangle-right right">We\'ll even sell you this case that matches to put your drives into!</p> 471 471 <img class="alignleft" src="http://www.example.com/postimages/2013/bobm.jpeg" alt="" width="50" height="50" /> 472 472 <p class="triangle-right left">For a single drive. 473 Who is going to be the first to mod a real trash can with a RAID array to Thunderbolt?</p>473 Who is going to be the first to mod a real Trash can with a RAID array to Thunderbolt?</p> 474 474 <img class="alignright" src="http://www.example.com/postimages/2013/philipmetroid.jpg" alt="" width="50" height="50" /> 475 475 <p class="triangle-right right">I can\'t wait to see the enclosures people make to go with this device.</p> 476 476 <img class="alignleft" src="http://www.example.com/postimages/2013/aarone.jpeg" alt="" width="50" height="50" /> 477 <p class="triangle-right lefttwo">Row of trash cans daisy chained together.</p>477 <p class="triangle-right lefttwo">Row of Trash cans daisy chained together.</p> 478 478 <img class="alignright" src="http://www.example.com/postimages/2013/philipmetroid.jpg" alt="" width="50" height="50" /> 479 479 <p class="triangle-right right">Packed and built for expansion.</p> 480 480 <img class="alignleft" src="http://www.example.com/postimages/2013/aarone.jpeg" alt="" width="50" height="50" /> … … 507 507 <p class="triangle-right left">Not terrible. However, now I need to price out the TOP OF THE LINE model and find out if it can cost more than my house. 508 508 Should be able to do it.</p> 509 509 <img class="alignright" src="http://www.example.com/postimages/2013/philipmetroid.jpg" alt="" width="50" height="50" /> 510 <p class="triangle-right right">SO RECYCLABLE that you can throw it into the trash... or use it as a trash can.</p>510 <p class="triangle-right right">SO RECYCLABLE that you can throw it into the Trash... or use it as a Trash can.</p> 511 511 <img class="alignleft" src="http://www.example.com/postimages/2013/aarone.jpeg" alt="" width="50" height="50" /> 512 512 <p class="triangle-right lefttwo">30k</p> 513 513 <img class="alignright" src="http://www.example.com/postimages/2013/philipmetroid.jpg" alt="" width="50" height="50" /> -
tests/qunit/fixtures/wp-api-generated.js
688 688 "force": { 689 689 "required": false, 690 690 "default": false, 691 "description": "Whether to bypass trash and force deletion.",691 "description": "Whether to bypass Trash and force deletion.", 692 692 "type": "boolean" 693 693 } 694 694 } … … 1497 1497 "force": { 1498 1498 "required": false, 1499 1499 "default": false, 1500 "description": "Whether to bypass trash and force deletion.",1500 "description": "Whether to bypass Trash and force deletion.", 1501 1501 "type": "boolean" 1502 1502 } 1503 1503 } … … 2249 2249 "force": { 2250 2250 "required": false, 2251 2251 "default": false, 2252 "description": "Whether to bypass trash and force deletion.",2252 "description": "Whether to bypass Trash and force deletion.", 2253 2253 "type": "boolean" 2254 2254 } 2255 2255 } … … 2562 2562 "force": { 2563 2563 "required": false, 2564 2564 "default": false, 2565 "description": "Whether to bypass trash and force deletion.",2565 "description": "Whether to bypass Trash and force deletion.", 2566 2566 "type": "boolean" 2567 2567 } 2568 2568 } … … 4210 4210 "force": { 4211 4211 "required": false, 4212 4212 "default": false, 4213 "description": "Whether to bypass trash and force deletion.",4213 "description": "Whether to bypass Trash and force deletion.", 4214 4214 "type": "boolean" 4215 4215 }, 4216 4216 "password": { -
tests/qunit/index.html
34 34 </script> 35 35 <script src="../../build/wp-includes/js/utils.js"></script> 36 36 <script> 37 window.pluploadL10n = {"queue_limit_exceeded":"You have attempted to queue too many files.","file_exceeds_size_limit":"%s exceeds the maximum upload size for this site.","zero_byte_file":"This file is empty. Please try another.","invalid_filetype":"Sorry, this file type is not permitted for security reasons.","not_an_image":"This file is not an image. Please try another.","image_memory_exceeded":"Memory exceeded. Please try another smaller file.","image_dimensions_exceeded":"This is larger than the maximum size. Please try another.","default_error":"An error occurred in the upload. Please try again later.","missing_upload_url":"There was a configuration error. Please contact the server administrator.","upload_limit_exceeded":"You may only upload 1 file.","http_error":"HTTP error.","upload_failed":"Upload failed.","big_upload_failed":"Please try uploading this file with the %1$sbrowser uploader%2$s.","big_upload_queued":"%s exceeds the maximum upload size for the multi-file uploader when used in your browser.","io_error":"IO error.","security_error":"Security error.","file_cancelled":"File canceled.","upload_stopped":"Upload stopped.","dismiss":"Dismiss","crunching":"Crunching\u2026","deleted":" moved to the trash.","error_uploading":"\u201c%s\u201d has failed to upload."};37 window.pluploadL10n = {"queue_limit_exceeded":"You have attempted to queue too many files.","file_exceeds_size_limit":"%s exceeds the maximum upload size for this site.","zero_byte_file":"This file is empty. Please try another.","invalid_filetype":"Sorry, this file type is not permitted for security reasons.","not_an_image":"This file is not an image. Please try another.","image_memory_exceeded":"Memory exceeded. Please try another smaller file.","image_dimensions_exceeded":"This is larger than the maximum size. Please try another.","default_error":"An error occurred in the upload. Please try again later.","missing_upload_url":"There was a configuration error. Please contact the server administrator.","upload_limit_exceeded":"You may only upload 1 file.","http_error":"HTTP error.","upload_failed":"Upload failed.","big_upload_failed":"Please try uploading this file with the %1$sbrowser uploader%2$s.","big_upload_queued":"%s exceeds the maximum upload size for the multi-file uploader when used in your browser.","io_error":"IO error.","security_error":"Security error.","file_cancelled":"File canceled.","upload_stopped":"Upload stopped.","dismiss":"Dismiss","crunching":"Crunching\u2026","deleted":"Moved to the Trash.","error_uploading":"\u201c%s\u201d has failed to upload."}; 38 38 window._wpPluploadSettings = {"defaults":{"runtimes":"html5,flash,silverlight,html4","file_data_name":"async-upload","url":"\/wp-admin\/async-upload.php","flash_swf_url":"http:\/\/src.wordpress-develop.dev\/wp-includes\/js\/plupload\/plupload.flash.swf","silverlight_xap_url":"http:\/\/src.wordpress-develop.dev\/wp-includes\/js\/plupload\/plupload.silverlight.xap","filters":{"max_file_size":"2097152b","mime_types":[{"extensions":"jpg,jpeg,jpe,gif,png,bmp,tiff,tif,ico,asf,asx,wmv,wmx,wm,avi,divx,flv,mov,qt,mpeg,mpg,mpe,mp4,m4v,ogv,webm,mkv,3gp,3gpp,3g2,3gp2,txt,asc,c,cc,h,srt,csv,tsv,ics,rtx,css,vtt,dfxp,mp3,m4a,m4b,ra,ram,wav,ogg,oga,mid,midi,wma,wax,mka,rtf,js,pdf,class,tar,zip,gz,gzip,rar,7z,psd,xcf,doc,pot,pps,ppt,wri,xla,xls,xlt,xlw,mdb,mpp,docx,docm,dotx,dotm,xlsx,xlsm,xlsb,xltx,xltm,xlam,pptx,pptm,ppsx,ppsm,potx,potm,ppam,sldx,sldm,onetoc,onetoc2,onetmp,onepkg,oxps,xps,odt,odp,ods,odg,odc,odb,odf,wp,wpd,key,numbers,pages"}]},"multipart_params":{"action":"upload-attachment","_wpnonce":"87fa5740b8"}},"browser":{"mobile":false,"supported":true},"limitExceeded":false}; 39 39 </script> 40 40 <script src="../../build/wp-includes/js/plupload/wp-plupload.js"></script>