Changeset 11199
- Timestamp:
- 08/25/2021 06:08:30 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-themes-api.php
r11158 r11199 193 193 } else { // 'raw' === $format, or anything else. 194 194 return $response; 195 } 196 } 197 198 /** 199 * Set the Status header for an API response. 200 */ 201 public function set_status_header() { 202 if ( ! empty( $this->bad_input ) ) { 203 status_header( 400 ); 204 } elseif ( 205 isset( $this->response->error ) && 206 'Theme not found' == $this->response->error 207 ) { 208 status_header( 404 ); 209 } else { 210 status_header( 200 ); 195 211 } 196 212 }
Note: See TracChangeset
for help on using the changeset viewer.