Ticket #49239: my-sites.php.patch
| File my-sites.php.patch, 843 bytes (added by , 6 years ago) |
|---|
-
my-sites.php
22 22 $blogs = get_blogs_of_user( $current_user->ID ); 23 23 24 24 $updated = false; 25 if ( 'updateblogsettings' == $action && isset( $_POST['primary_blog'] ) ) {25 if ( 'updateblogsettings' === $action && isset( $_POST['primary_blog'] ) ) { 26 26 check_admin_referer( 'update-my-sites' ); 27 27 28 28 $blog = get_site( (int) $_POST['primary_blog'] ); … … 107 107 * @param string $context Context of the setting (global or site-specific). Default 'global'. 108 108 */ 109 109 $settings_html = apply_filters( 'myblogs_options', '', 'global' ); 110 if ( $settings_html != '') {110 if ( '' !== $settings_html) { 111 111 echo '<h3>' . __( 'Global Settings' ) . '</h3>'; 112 112 echo $settings_html; 113 113 }