Completed
Push — master ( 0b5bcf...1a45d6 )
by Julien
03:23
created
includes/admin/settings/settings-general.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * BetterOptin Settings
4
- *
5
- * @package   BetterOptin/General Settings
6
- * @author    ThemeAvenue <[email protected]>
7
- * @license   GPL-2.0+
8
- * @link      http://themeavenue.net
9
- * @copyright 2015 ThemeAvenue
10
- */
3
+				 * BetterOptin Settings
4
+				 *
5
+				 * @package   BetterOptin/General Settings
6
+				 * @author    ThemeAvenue <[email protected]>
7
+				 * @license   GPL-2.0+
8
+				 * @link      http://themeavenue.net
9
+				 * @copyright 2015 ThemeAvenue
10
+				 */
11 11
 
12 12
 // If this file is called directly, abort.
13 13
 if ( ! defined( 'WPINC' ) ) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,10 +38,10 @@
 block discarded – undo
38 38
 	);
39 39
 
40 40
 	if ( wpbo_is_pro() ) {
41
-		$providers_option['desc'] = wp_kses_post( sprintf( __( 'Want to use a different provider than WordPress? Go pro! The pro version of BetterOptin gives you access to MailChimp, Aweber and MailPoet. <a href="%1$s" target="_blank">Click here to purchase the pro version</a>. Starting from %2$s.', 'betteroptin' ), esc_url( 'https://betteropt.in/?utm_source=plugin&utm_medium=providers_nag&utm_campaign=upsell' ), '$29' ) );
41
+		$providers_option[ 'desc' ] = wp_kses_post( sprintf( __( 'Want to use a different provider than WordPress? Go pro! The pro version of BetterOptin gives you access to MailChimp, Aweber and MailPoet. <a href="%1$s" target="_blank">Click here to purchase the pro version</a>. Starting from %2$s.', 'betteroptin' ), esc_url( 'https://betteropt.in/?utm_source=plugin&utm_medium=providers_nag&utm_campaign=upsell' ), '$29' ) );
42 42
 	}
43 43
 
44
-	$settings['general'] = array(
44
+	$settings[ 'general' ] = array(
45 45
 		'name'    => __( 'General', 'betteroptin' ),
46 46
 		'options' => array(
47 47
 			array(
Please login to merge, or discard this patch.
includes/install.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
 	if ( function_exists( 'is_multisite' ) && is_multisite() ) {
33 33
 
34
-		if ( $network_wide  ) {
34
+		if ( $network_wide ) {
35 35
 
36 36
 			// Get all blog ids
37 37
 			$blog_ids = wpbo_get_blog_ids();
@@ -109,14 +109,14 @@  discard block
 block discarded – undo
109 109
 
110 110
 		foreach ( $options as $section_id => $section ) {
111 111
 
112
-			foreach ( $section['options'] as $option ) {
112
+			foreach ( $section[ 'options' ] as $option ) {
113 113
 
114
-				if ( ! isset( $option['id'] ) ) {
114
+				if ( ! isset( $option[ 'id' ] ) ) {
115 115
 					continue;
116 116
 				}
117 117
 
118
-				$value                     = isset( $option['default'] ) ? $option['default'] : '';
119
-				$defaults[ $option['id'] ] = $value;
118
+				$value                     = isset( $option[ 'default' ] ) ? $option[ 'default' ] : '';
119
+				$defaults[ $option[ 'id' ] ] = $value;
120 120
 
121 121
 			}
122 122
 
Please login to merge, or discard this patch.