Changeset 58706
- Timestamp:
- 07/11/2024 06:22:51 AM (4 weeks ago)
- Location:
- trunk/src/wp-includes/rest-api
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-request.php
r58682 r58706 166 166 * 167 167 * Ensures that header names are always treated the same regardless of 168 * source. Header names are always case 168 * source. Header names are always caseinsensitive. 169 169 * 170 170 * Note that we treat `-` (dashes) and `_` (underscores) as the same -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r58694 r58706 451 451 452 452 /** 453 * Performs post 453 * Performs postprocessing on an attachment. 454 454 * 455 455 * @since 5.3.0 … … 472 472 473 473 /** 474 * Checks if a given request can perform post 474 * Checks if a given request can perform postprocessing on an attachment. 475 475 * 476 476 * @since 5.3.0 … … 602 602 switch ( $modifier['type'] ) { 603 603 case 'rotate': 604 // Rotation direction: clockwise vs. counter 604 // Rotation direction: clockwise vs. counterclockwise. 605 605 $rotate = 0 - $args['angle']; 606 606 … … 662 662 $filename = "{$image_name}.{$image_ext}"; 663 663 664 // Create the uploads sub -directory if needed.664 // Create the uploads subdirectory if needed. 665 665 $uploads = wp_upload_dir(); 666 666 -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r58326 r58706 184 184 * @param bool $required Whether the post requires a password check. 185 185 * @param WP_Post $post The post been password checked. 186 * @return bool Result of password check taking in 186 * @return bool Result of password check taking into account REST API considerations. 187 187 */ 188 188 public function check_password_required( $required, $post ) { … … 2052 2052 * By default, WordPress will show password protected posts with a title of 2053 2053 * "Protected: %s", as the REST API communicates the protected status of a post 2054 * in a machine 2054 * in a machinereadable format, we remove the "Protected: " prefix. 2055 2055 * 2056 2056 * @since 4.7.0 -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
r58704 r58706 165 165 } 166 166 167 // Otherwise grant access if the post is readable by the logged 167 // Otherwise grant access if the post is readable by the loggedin user. 168 168 if ( current_user_can( 'read_post', $post->ID ) ) { 169 169 return true; -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php
r58704 r58706 348 348 * 349 349 * @param array $meta_elements { 350 * A multi -dimensional indexed array on success, else empty array.350 * A multidimensional indexed array on success, else empty array. 351 351 * 352 352 * @type string[] $0 Meta elements with a content attribute. … … 384 384 * 385 385 * @param array $meta_elements { 386 * A multi -dimensional indexed array on success, else empty array.386 * A multidimensional indexed array on success, else empty array. 387 387 * 388 388 * @type string[] $0 Meta elements with a content attribute. … … 526 526 * @param string $html The string of HTML to be parsed. 527 527 * @return array { 528 * A multi -dimensional indexed array on success, else empty array.528 * A multidimensional indexed array on success, else empty array. 529 529 * 530 530 * @type string[] $0 Meta elements with a content attribute. … … 589 589 /* 590 590 * These are the options: 591 * - i : case 591 * - i : caseinsensitive 592 592 * - s : allows newline characters for the . match (needed for multiline elements) 593 593 * - U means non-greedy matching … … 638 638 /* 639 639 * These are the options: 640 * - i : case 640 * - i : caseinsensitive 641 641 * - s : allows newline characters for the . match (needed for multiline elements) 642 642 * - U means non-greedy matching -
trunk/src/wp-includes/rest-api/search/class-wp-rest-post-search-handler.php
r57643 r58706 188 188 * By default, WordPress will show password protected posts with a title of 189 189 * "Protected: %s". As the REST API communicates the protected status of a post 190 * in a machine 190 * in a machinereadable format, we remove the "Protected: " prefix. 191 191 * 192 192 * @since 5.0.0
Note: See TracChangeset
for help on using the changeset viewer.