Changeset 8662 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/explanations.php
- Timestamp:
- 04/24/2019 07:02:06 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/explanations.php
r7816 r8662 161 161 */ 162 162 public function prevent_direct_creation() { 163 if ( $this->exp_post_type == $_GET['post_type'] ) {163 if ( isset( $_GET['post_type'] ) && $this->exp_post_type == $_GET['post_type'] ) { 164 164 wp_safe_redirect( admin_url() ); 165 165 exit;
Note: See TracChangeset
for help on using the changeset viewer.