@@ -152,8 +152,10 @@ |
||
| 152 | 152 | |
| 153 | 153 | if ( is_front_page() ) : |
| 154 | 154 | $page_url = home_url(); |
| 155 | - else : |
|
| 155 | + else { |
|
| 156 | + : |
|
| 156 | 157 | $page_url = 'http'; |
| 158 | + } |
|
| 157 | 159 | |
| 158 | 160 | if ( isset( $_SERVER["HTTPS"] ) && $_SERVER["HTTPS"] == "on" ) { |
| 159 | 161 | $page_url .= "s"; |
@@ -10,7 +10,9 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | // Exit if accessed directly |
| 13 | -if ( ! defined( 'ABSPATH' ) ) exit; |
|
| 13 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 14 | + exit; |
|
| 15 | +} |
|
| 14 | 16 | |
| 15 | 17 | /** |
| 16 | 18 | * Processes all GMB actions sent via POST and GET by looking for the 'gmb-action' |
@@ -62,11 +62,14 @@ |
||
| 62 | 62 | }, 250 ); |
| 63 | 63 | </script> |
| 64 | 64 | |
| 65 | - <?php else : ?> |
|
| 65 | + <?php else { |
|
| 66 | + : ?> |
|
| 66 | 67 | |
| 67 | 68 | <div id="gmb-upgrade-status" class="updated" style="margin-top:15px;"> |
| 68 | 69 | <p style="margin-bottom:8px;"> |
| 69 | - <?php _e( 'The upgrade process has started, please do not close your browser or refresh. This could take several minutes. You will be automatically redirected when the upgrade has finished.', 'gmb' ); ?> |
|
| 70 | + <?php _e( 'The upgrade process has started, please do not close your browser or refresh. This could take several minutes. You will be automatically redirected when the upgrade has finished.', 'gmb' ); |
|
| 71 | +} |
|
| 72 | +?> |
|
| 70 | 73 | <img src="<?php echo GMB_PLUGIN_URL . '/assets/img/loading.gif'; ?>" id="gmb-upgrade-loader" style="position:relative; top:3px;" /> |
| 71 | 74 | </p> |
| 72 | 75 | </div> |