- Timestamp:
- 12/30/2022 02:36:03 AM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php
r54970 r55021 135 135 * @since 4.7.2 136 136 * 137 * @param int $parent_post Supplied ID.137 * @param int $parent_post_id Supplied ID. 138 138 * @return WP_Post|WP_Error Post object if ID is valid, WP_Error otherwise. 139 139 */ 140 protected function get_parent( $parent_post ) {140 protected function get_parent( $parent_post_id ) { 141 141 $error = new WP_Error( 142 142 'rest_post_invalid_parent', … … 145 145 ); 146 146 147 if ( (int) $parent_post <= 0 ) {147 if ( (int) $parent_post_id <= 0 ) { 148 148 return $error; 149 149 } 150 150 151 $parent_post = get_post( (int) $parent_post );151 $parent_post = get_post( (int) $parent_post_id ); 152 152 153 153 if ( empty( $parent_post ) || empty( $parent_post->ID )
Note: See TracChangeset
for help on using the changeset viewer.