Changeset 12410 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-theme-directory-compat.php
- Timestamp:
- 02/21/2023 05:48:06 AM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-theme-directory-compat.php
r10819 r12410 91 91 } 92 92 93 if ( ! $this->for_slug( $slug ) ) { 94 status_header( 404 ); 95 } 96 } 97 98 /** 99 * Set the directory instance to the slugs data. 100 * 101 * @param string $slug The theme slug. 102 */ 103 public function for_slug( $slug ) { 93 104 $theme = $this->get_object( $slug ); 94 105 if ( ! $theme ) { 95 status_header( 404 ); 96 return; 106 return false; 97 107 } 98 108
Note: See TracChangeset
for help on using the changeset viewer.