Changeset 12410 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-plugin-directory-compat.php
- Timestamp:
- 02/21/2023 05:48:06 AM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-plugin-directory-compat.php
r11563 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 plugin slug. 102 */ 103 public function for_slug( $slug ) { 93 104 $plugin = $this->get_object( $slug ); 94 105 if ( ! $plugin ) { 95 status_header( 404 ); 96 return; 106 return false; 97 107 } 98 108
Note: See TracChangeset
for help on using the changeset viewer.