Changeset 8266
- Timestamp:
- 07/07/2008 02:21:47 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
wp-admin/includes/plugin.php (modified) (2 diffs)
-
wp-includes/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin.php
r8095 r8266 471 471 $parent = get_admin_page_parent(); 472 472 473 $page_type = 'admin'; 473 474 if ( empty ( $parent_page ) || 'admin.php' == $parent_page ) { 474 475 if ( isset( $admin_page_hooks[$plugin_page] )) … … 477 478 if ( isset( $admin_page_hooks[$parent] )) 478 479 $page_type = $admin_page_hooks[$parent]; 479 } else 480 if ( isset( $admin_page_hooks[$parent_page] ) ) { 481 $page_type = $admin_page_hooks[$parent_page]; 482 } else { 483 $page_type = 'admin'; 484 } 480 } else if ( isset( $admin_page_hooks[$parent_page] ) ) { 481 $page_type = $admin_page_hooks[$parent_page]; 482 } 485 483 486 484 $plugin_name = preg_replace( '!\.php!', '', $plugin_page ); -
trunk/wp-includes/functions.php
r8247 r8266 2257 2257 */ 2258 2258 function is_ssl() { 2259 return ( 'on' == strtolower($_SERVER['HTTPS']) ) ? true : false;2259 return ( isset($_SERVER['HTTPS']) && 'on' == strtolower($_SERVER['HTTPS']) ) ? true : false; 2260 2260 } 2261 2261
Note: See TracChangeset
for help on using the changeset viewer.