Changeset 52242
- Timestamp:
- 11/24/2021 11:58:20 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/media/views/modal.js
r51945 r52242 139 139 $( 'body' ).removeClass( 'modal-open' ); 140 140 141 // Hide the modal element by adding display 141 // Hide the modal element by adding display:none. 142 142 this.$el.hide(); 143 143 -
trunk/src/wp-admin/includes/file.php
r52032 r52242 1195 1195 } 1196 1196 1197 // Potential file name must be valid string 1198 if ( $tmpfname_disposition && is_string( $tmpfname_disposition ) && ( 0 === validate_file( $tmpfname_disposition ) ) ) { 1197 // Potential file name must be valid string. 1198 if ( $tmpfname_disposition && is_string( $tmpfname_disposition ) 1199 && ( 0 === validate_file( $tmpfname_disposition ) ) 1200 ) { 1199 1201 if ( rename( $tmpfname, $tmpfname_disposition ) ) { 1200 1202 $tmpfname = $tmpfname_disposition; -
trunk/src/wp-includes/rest-api.php
r52133 r52242 3057 3057 * 3058 3058 * @param int|WP_Post $post Post ID or post object. 3059 * @return string The route path with a leading slash for the given post, or an empty string if there is not a route. 3059 * @return string The route path with a leading slash for the given post, 3060 * or an empty string if there is not a route. 3060 3061 */ 3061 3062 function rest_get_route_for_post( $post ) { … … 3090 3091 * 3091 3092 * @param string $post_type The name of a registered post type. 3092 * @return string The route path with a leading slash for the given post type, or an empty string if there is not a route. 3093 * @return string The route path with a leading slash for the given post type, 3094 * or an empty string if there is not a route. 3093 3095 */ 3094 3096 function rest_get_route_for_post_type_items( $post_type ) { … … 3123 3125 * 3124 3126 * @param int|WP_Term $term Term ID or term object. 3125 * @return string The route path with a leading slash for the given term, or an empty string if there is not a route. 3127 * @return string The route path with a leading slash for the given term, 3128 * or an empty string if there is not a route. 3126 3129 */ 3127 3130 function rest_get_route_for_term( $term ) { -
trunk/tests/phpunit/includes/mock-invokable.php
r52235 r52242 10 10 * Class Mock_Invokable. 11 11 * 12 * This class is us ing to mock a class that has __invokemethod.12 * This class is used to mock a class that has an `__invoke` method. 13 13 */ 14 14 class Mock_Invokable { -
trunk/tests/phpunit/includes/spy-rest-server.php
r51960 r52242 40 40 41 41 /** 42 * Stores last set status.43 * @param int $code HTTP status.44 */45 public function set_status( $status ) {46 $this->status = $status;47 }48 49 /**50 42 * Removes a header from the list of sent headers. 51 43 * … … 54 46 public function remove_header( $header ) { 55 47 unset( $this->sent_headers[ $header ] ); 48 } 49 50 /** 51 * Stores last set status. 52 * 53 * @param int $code HTTP status. 54 */ 55 public function set_status( $status ) { 56 $this->status = $status; 56 57 } 57 58 -
trunk/tests/phpunit/tests/admin/includesFile.php
r52010 r52242 89 89 * @covers ::download_url 90 90 * 91 * @param $filter 91 * @param $filter A callback containing a fake Content-Disposition header. 92 92 */ 93 93 public function test_download_url_should_respect_filename_from_content_disposition_header( $filter ) { … … 175 175 * @covers ::download_url 176 176 * 177 * @param $filter 177 * @param $filter A callback containing a fake Content-Disposition header. 178 178 */ 179 179 public function test_download_url_should_reject_filename_from_invalid_content_disposition_header( $filter ) {
Note: See TracChangeset
for help on using the changeset viewer.