Test Failed
Pull Request — master (#296)
by Viruthagiri
11:50
created
tests/selenium/stest-04_Edit_Listing.php 2 patches
Indentation   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -1,63 +1,63 @@
 block discarded – undo
1 1
 <?php
2 2
 class EditListing extends GD_Test
3 3
 {
4
-    public function setUp()
5
-    {
6
-        parent::setUp();
4
+	public function setUp()
5
+	{
6
+		parent::setUp();
7 7
 
8
-        //skip test if already completed.
9
-        if ($this->skipTest($this->getCurrentFileNumber(pathinfo(__FILE__, PATHINFO_FILENAME)), $this->getCompletedFileNumber())) {
10
-            $this->markTestSkipped('Skipping '.pathinfo(__FILE__, PATHINFO_FILENAME).' since its already completed......');
11
-            return;
12
-        } else {
13
-            $this->prepareSession()->currentWindow()->maximize();
14
-        }
15
-    }
8
+		//skip test if already completed.
9
+		if ($this->skipTest($this->getCurrentFileNumber(pathinfo(__FILE__, PATHINFO_FILENAME)), $this->getCompletedFileNumber())) {
10
+			$this->markTestSkipped('Skipping '.pathinfo(__FILE__, PATHINFO_FILENAME).' since its already completed......');
11
+			return;
12
+		} else {
13
+			$this->prepareSession()->currentWindow()->maximize();
14
+		}
15
+	}
16 16
 
17
-    public function testEditListing()
18
-    {
19
-        $this->logInfo('Editing GD Place listing as user......');
20
-        $this->maybeUserLogin(self::GDTEST_BASE_URL.'author/test-user/?geodir_dashbord=true&stype=gd_place', true);
21
-        $this->assertTrue( $this->isTextPresent("Places by"), "'Places by' text not found");
22
-        $this->byClassName('geodir-edit')->click();
23
-        $this->waitForPageLoadAndCheckForErrors();
24
-        $this->assertTrue( $this->isTextPresent("Edit Place"), "Edit Place text not found");
25
-        $this->byId('post_desc')->value('Test Desc modified');
26
-        $this->byId('geodir_accept_term_condition')->click();
27
-        // Submit the form
28
-        $this->byXPath("//div[@id='geodir-add-listing-submit']//input[@type='submit']")->click();
29
-        $this->waitForPageLoadAndCheckForErrors();
30
-        $this->assertTrue( $this->isTextPresent("This is a preview of your listing"), "Not in preview page.");
31
-        // Submit the form
32
-        $this->byClassName('geodir_publish_button')->click();
33
-        $this->waitForPageLoadAndCheckForErrors();
34
-        $this->assertTrue( $this->isTextPresent("Thank you, your information has been successfully received"), "Not in success page");
35
-        $this->maybeLogout();
36
-    }
17
+	public function testEditListing()
18
+	{
19
+		$this->logInfo('Editing GD Place listing as user......');
20
+		$this->maybeUserLogin(self::GDTEST_BASE_URL.'author/test-user/?geodir_dashbord=true&stype=gd_place', true);
21
+		$this->assertTrue( $this->isTextPresent("Places by"), "'Places by' text not found");
22
+		$this->byClassName('geodir-edit')->click();
23
+		$this->waitForPageLoadAndCheckForErrors();
24
+		$this->assertTrue( $this->isTextPresent("Edit Place"), "Edit Place text not found");
25
+		$this->byId('post_desc')->value('Test Desc modified');
26
+		$this->byId('geodir_accept_term_condition')->click();
27
+		// Submit the form
28
+		$this->byXPath("//div[@id='geodir-add-listing-submit']//input[@type='submit']")->click();
29
+		$this->waitForPageLoadAndCheckForErrors();
30
+		$this->assertTrue( $this->isTextPresent("This is a preview of your listing"), "Not in preview page.");
31
+		// Submit the form
32
+		$this->byClassName('geodir_publish_button')->click();
33
+		$this->waitForPageLoadAndCheckForErrors();
34
+		$this->assertTrue( $this->isTextPresent("Thank you, your information has been successfully received"), "Not in success page");
35
+		$this->maybeLogout();
36
+	}
37 37
 
38
-    public function testEditAdminListing()
39
-    {
40
-        $this->logInfo('Editing GD Place listing as admin......');
41
-        $this->maybeAdminLogin(self::GDTEST_BASE_URL.'wp-admin/edit.php?post_type=gd_place');
42
-        $this->assertTrue( $this->isTextPresent("post-type-gd_place"), "Not in Places post type");
43
-        $this->byLinkText("Test Listing")->click();
44
-        $this->waitForPageLoadAndCheckForErrors();
45
-        $this->assertTrue( $this->isTextPresent("Edit Place"), "Edit Place text not found");
46
-        $this->byId('title')->value('Test Listing modified');
47
-        // Submit the form
48
-        $this->byId('publish')->click();
49
-        $this->waitForPageLoadAndCheckForErrors();
50
-        $this->assertTrue( $this->isTextPresent("Place updated."), "updated text not found.");
51
-    }
38
+	public function testEditAdminListing()
39
+	{
40
+		$this->logInfo('Editing GD Place listing as admin......');
41
+		$this->maybeAdminLogin(self::GDTEST_BASE_URL.'wp-admin/edit.php?post_type=gd_place');
42
+		$this->assertTrue( $this->isTextPresent("post-type-gd_place"), "Not in Places post type");
43
+		$this->byLinkText("Test Listing")->click();
44
+		$this->waitForPageLoadAndCheckForErrors();
45
+		$this->assertTrue( $this->isTextPresent("Edit Place"), "Edit Place text not found");
46
+		$this->byId('title')->value('Test Listing modified');
47
+		// Submit the form
48
+		$this->byId('publish')->click();
49
+		$this->waitForPageLoadAndCheckForErrors();
50
+		$this->assertTrue( $this->isTextPresent("Place updated."), "updated text not found.");
51
+	}
52 52
 
53
-    public function tearDown()
54
-    {
55
-        if (!$this->skipTest($this->getCurrentFileNumber(pathinfo(__FILE__, PATHINFO_FILENAME)), $this->getCompletedFileNumber())) {
56
-            //write current file number to completed.txt
57
-            $CurrentFileNumber = $this->getCurrentFileNumber(pathinfo(__FILE__, PATHINFO_FILENAME));
58
-            $completed = fopen("tests/selenium/completed.txt", "w") or die("Unable to open file!");
59
-            fwrite($completed, $CurrentFileNumber);
60
-        }
61
-    }
53
+	public function tearDown()
54
+	{
55
+		if (!$this->skipTest($this->getCurrentFileNumber(pathinfo(__FILE__, PATHINFO_FILENAME)), $this->getCompletedFileNumber())) {
56
+			//write current file number to completed.txt
57
+			$CurrentFileNumber = $this->getCurrentFileNumber(pathinfo(__FILE__, PATHINFO_FILENAME));
58
+			$completed = fopen("tests/selenium/completed.txt", "w") or die("Unable to open file!");
59
+			fwrite($completed, $CurrentFileNumber);
60
+		}
61
+	}
62 62
 }
63 63
 ?>
64 64
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -18,20 +18,20 @@  discard block
 block discarded – undo
18 18
     {
19 19
         $this->logInfo('Editing GD Place listing as user......');
20 20
         $this->maybeUserLogin(self::GDTEST_BASE_URL.'author/test-user/?geodir_dashbord=true&stype=gd_place', true);
21
-        $this->assertTrue( $this->isTextPresent("Places by"), "'Places by' text not found");
21
+        $this->assertTrue($this->isTextPresent("Places by"), "'Places by' text not found");
22 22
         $this->byClassName('geodir-edit')->click();
23 23
         $this->waitForPageLoadAndCheckForErrors();
24
-        $this->assertTrue( $this->isTextPresent("Edit Place"), "Edit Place text not found");
24
+        $this->assertTrue($this->isTextPresent("Edit Place"), "Edit Place text not found");
25 25
         $this->byId('post_desc')->value('Test Desc modified');
26 26
         $this->byId('geodir_accept_term_condition')->click();
27 27
         // Submit the form
28 28
         $this->byXPath("//div[@id='geodir-add-listing-submit']//input[@type='submit']")->click();
29 29
         $this->waitForPageLoadAndCheckForErrors();
30
-        $this->assertTrue( $this->isTextPresent("This is a preview of your listing"), "Not in preview page.");
30
+        $this->assertTrue($this->isTextPresent("This is a preview of your listing"), "Not in preview page.");
31 31
         // Submit the form
32 32
         $this->byClassName('geodir_publish_button')->click();
33 33
         $this->waitForPageLoadAndCheckForErrors();
34
-        $this->assertTrue( $this->isTextPresent("Thank you, your information has been successfully received"), "Not in success page");
34
+        $this->assertTrue($this->isTextPresent("Thank you, your information has been successfully received"), "Not in success page");
35 35
         $this->maybeLogout();
36 36
     }
37 37
 
@@ -39,15 +39,15 @@  discard block
 block discarded – undo
39 39
     {
40 40
         $this->logInfo('Editing GD Place listing as admin......');
41 41
         $this->maybeAdminLogin(self::GDTEST_BASE_URL.'wp-admin/edit.php?post_type=gd_place');
42
-        $this->assertTrue( $this->isTextPresent("post-type-gd_place"), "Not in Places post type");
42
+        $this->assertTrue($this->isTextPresent("post-type-gd_place"), "Not in Places post type");
43 43
         $this->byLinkText("Test Listing")->click();
44 44
         $this->waitForPageLoadAndCheckForErrors();
45
-        $this->assertTrue( $this->isTextPresent("Edit Place"), "Edit Place text not found");
45
+        $this->assertTrue($this->isTextPresent("Edit Place"), "Edit Place text not found");
46 46
         $this->byId('title')->value('Test Listing modified');
47 47
         // Submit the form
48 48
         $this->byId('publish')->click();
49 49
         $this->waitForPageLoadAndCheckForErrors();
50
-        $this->assertTrue( $this->isTextPresent("Place updated."), "updated text not found.");
50
+        $this->assertTrue($this->isTextPresent("Place updated."), "updated text not found.");
51 51
     }
52 52
 
53 53
     public function tearDown()
Please login to merge, or discard this patch.
tests/lib/wordpress-tests-lib/includes/install.php 2 patches
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,9 +44,10 @@
 block discarded – undo
44 44
 	$wpdb->query( "DROP TABLE IF EXISTS $prefixed_table" );
45 45
 
46 46
 	// We need to create references to ms global tables.
47
-	if ( $multisite )
48
-		$wpdb->{$table} = $prefixed_table;
49
-}
47
+	if ( $multisite ) {
48
+			$wpdb->{$table} = $prefixed_table;
49
+	}
50
+	}
50 51
 
51 52
 // Prefill a permalink structure so that WP doesn't try to determine one itself.
52 53
 add_action( 'populate_options', '_set_default_permalink_structure_for_tests' );
Please login to merge, or discard this patch.
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -4,14 +4,14 @@  discard block
 block discarded – undo
4 4
  *
5 5
  * @todo Reuse the init/load code in init.php
6 6
  */
7
-error_reporting( E_ALL & ~E_DEPRECATED & ~E_STRICT );
7
+error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);
8 8
 
9 9
 $config_file_path = $argv[1];
10
-$multisite = ! empty( $argv[2] );
10
+$multisite = !empty($argv[2]);
11 11
 
12
-define( 'WP_INSTALLING', true );
12
+define('WP_INSTALLING', true);
13 13
 require_once $config_file_path;
14
-require_once dirname( __FILE__ ) . '/functions.php';
14
+require_once dirname(__FILE__).'/functions.php';
15 15
 
16 16
 $_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.1';
17 17
 $_SERVER['HTTP_HOST'] = WP_TESTS_DOMAIN;
@@ -21,53 +21,53 @@  discard block
 block discarded – undo
21 21
 
22 22
 $PHP_SELF = $GLOBALS['PHP_SELF'] = $_SERVER['PHP_SELF'] = '/index.php';
23 23
 
24
-require_once ABSPATH . '/wp-settings.php';
24
+require_once ABSPATH.'/wp-settings.php';
25 25
 
26
-require_once ABSPATH . '/wp-admin/includes/upgrade.php';
27
-require_once ABSPATH . '/wp-includes/wp-db.php';
26
+require_once ABSPATH.'/wp-admin/includes/upgrade.php';
27
+require_once ABSPATH.'/wp-includes/wp-db.php';
28 28
 
29 29
 // Override the PHPMailer
30 30
 global $phpmailer;
31
-require_once( dirname( __FILE__ ) . '/mock-mailer.php' );
31
+require_once(dirname(__FILE__).'/mock-mailer.php');
32 32
 $phpmailer = new MockPHPMailer();
33 33
 
34
-$wpdb->query( 'SET storage_engine = INNODB' );
35
-$wpdb->select( DB_NAME, $wpdb->dbh );
34
+$wpdb->query('SET storage_engine = INNODB');
35
+$wpdb->select(DB_NAME, $wpdb->dbh);
36 36
 
37
-echo "Installing..." . PHP_EOL;
37
+echo "Installing...".PHP_EOL;
38 38
 
39
-foreach ( $wpdb->tables() as $table => $prefixed_table ) {
40
-	$wpdb->query( "DROP TABLE IF EXISTS $prefixed_table" );
39
+foreach ($wpdb->tables() as $table => $prefixed_table) {
40
+	$wpdb->query("DROP TABLE IF EXISTS $prefixed_table");
41 41
 }
42 42
 
43
-foreach ( $wpdb->tables( 'ms_global' ) as $table => $prefixed_table ) {
44
-	$wpdb->query( "DROP TABLE IF EXISTS $prefixed_table" );
43
+foreach ($wpdb->tables('ms_global') as $table => $prefixed_table) {
44
+	$wpdb->query("DROP TABLE IF EXISTS $prefixed_table");
45 45
 
46 46
 	// We need to create references to ms global tables.
47
-	if ( $multisite )
47
+	if ($multisite)
48 48
 		$wpdb->{$table} = $prefixed_table;
49 49
 }
50 50
 
51 51
 // Prefill a permalink structure so that WP doesn't try to determine one itself.
52
-add_action( 'populate_options', '_set_default_permalink_structure_for_tests' );
52
+add_action('populate_options', '_set_default_permalink_structure_for_tests');
53 53
 
54
-wp_install( WP_TESTS_TITLE, 'admin', WP_TESTS_EMAIL, true, null, 'password' );
54
+wp_install(WP_TESTS_TITLE, 'admin', WP_TESTS_EMAIL, true, null, 'password');
55 55
 
56 56
 // Delete dummy permalink structure, as prefilled above.
57
-if ( ! is_multisite() ) {
58
-	delete_option( 'permalink_structure' );
57
+if (!is_multisite()) {
58
+	delete_option('permalink_structure');
59 59
 }
60
-remove_action( 'populate_options', '_set_default_permalink_structure_for_tests' );
60
+remove_action('populate_options', '_set_default_permalink_structure_for_tests');
61 61
 
62
-if ( $multisite ) {
63
-	echo "Installing network..." . PHP_EOL;
62
+if ($multisite) {
63
+	echo "Installing network...".PHP_EOL;
64 64
 
65
-	define( 'WP_INSTALLING_NETWORK', true );
65
+	define('WP_INSTALLING_NETWORK', true);
66 66
 
67
-	$title = WP_TESTS_TITLE . ' Network';
67
+	$title = WP_TESTS_TITLE.' Network';
68 68
 	$subdomain_install = false;
69 69
 
70 70
 	install_network();
71
-	populate_network( 1, WP_TESTS_DOMAIN, WP_TESTS_EMAIL, $title, '/', $subdomain_install );
72
-	$wp_rewrite->set_permalink_structure( '' );
71
+	populate_network(1, WP_TESTS_DOMAIN, WP_TESTS_EMAIL, $title, '/', $subdomain_install);
72
+	$wp_rewrite->set_permalink_structure('');
73 73
 }
Please login to merge, or discard this patch.
geodirectory-admin/option-pages/title_meta_settings_array.php 2 patches
Indentation   +358 added lines, -358 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 $gd_wpseo_use = '';
12 12
 if (class_exists('WPSEO_Frontend') || class_exists('All_in_One_SEO_Pack')) {
13
-    $gd_wpseo_use = "<b style='color:red;'>".__('Please use the WPSEO settings instead.','geodirectory')."</b><br />";
13
+	$gd_wpseo_use = "<b style='color:red;'>".__('Please use the WPSEO settings instead.','geodirectory')."</b><br />";
14 14
 }
15 15
 
16 16
 /**
@@ -21,363 +21,363 @@  discard block
 block discarded – undo
21 21
  */
22 22
 $geodir_settings['title_meta_settings'] = apply_filters('geodir_title_meta_settings', array(
23 23
 
24
-    /* Listing Permalink Settings start */
25
-    array('name' => __('Title / Meta', 'geodirectory'), 'type' => 'no_tabs', 'desc' => 'Settings to set page title and meta', 'id' => 'geodir_title_meta_settings '),
26
-
27
-
28
-
29
-
30
-    array('name' => $gd_wpseo_use.__('Available Variables', 'geodirectory'),
31
-        'desc' => __('%%title%%, %%sitename%%, %%sitedesc%%, %%excerpt%%, %%pt_single%%, %%pt_plural%%, %%category%%, %%id%%, %%sep%%, %%location%%, %%in_location%%, %%in_location_single%%, %%location_single%%, %%search_term%%, %%search_near%%, %%name%%, %%page%%, %%pagenumber%%, %%pagetotal%%', 'geodirectory'),
32
-        'type' => 'sectionstart',
33
-        'id' => 'geodir_meta_vars'),
34
-
35
-    array('type' => 'sectionend', 'id' => 'geodir_meta_vars'),
36
-
37
-    array('name' => __('Homepage Meta Settings', 'geodirectory'),
38
-        'type' => 'sectionstart',
39
-        'desc' => '',
40
-        'id' => 'geodir_home_meta'),
41
-
42
-    array(
43
-        'name' => __('Homepage meta title', 'geodirectory'),
44
-        'desc' => __('This will use the title of the page set as frontpage if left blank.', 'geodirectory'),
45
-        'id' => 'geodir_meta_title_homepage',
46
-        'type' => 'text',
47
-        'css' => 'width:100%;',
48
-        'std' => '',
49
-        'placeholder' => ''
50
-    ),
51
-
52
-    array(
53
-        'name' => __('Homepage meta description', 'geodirectory'),
54
-        'desc' => __('Enter the meta description for the homepage.', 'geodirectory'),
55
-        'id' => 'geodir_meta_desc_homepage',
56
-        'type' => 'textarea',
57
-        'css' => 'width:100%;',
58
-        'std' => ''
59
-    ),
60
-
61
-    array('type' => 'sectionend', 'id' => 'geodir_home_meta'),
62
-
63
-    // details page meta
64
-    array('name' => __('Details Page Meta Settings', 'geodirectory'),
65
-        'type' => 'sectionstart',
66
-        'desc' => '',
67
-        'id' => 'geodir_details_meta'),
68
-
69
-    array(
70
-        'name' => __('Details page meta title', 'geodirectory'),
71
-        'desc' => __('Enter the meta title for the details page.', 'geodirectory'),
72
-        'id' => 'geodir_meta_title_detail',
73
-        'type' => 'text',
74
-        'css' => 'width:100%;',
75
-        'std' => __('%%title%% %%sep%% %%sitename%%', 'geodirectory'),
76
-        'placeholder' => '%%title%% %%sep%% %%sitename%%'
77
-    ),
78
-
79
-    array(
80
-        'name' => __('Details page meta description', 'geodirectory'),
81
-        'desc' => __('Enter the meta description for the details page.', 'geodirectory'),
82
-        'id' => 'geodir_meta_desc_detail',
83
-        'type' => 'textarea',
84
-        'css' => 'width:100%;',
85
-        'std' => __('%%excerpt%%', 'geodirectory'),
86
-        'placeholder' => '%%excerpt%%'
87
-    ),
88
-
89
-    array('type' => 'sectionend', 'id' => 'geodir_details_meta'),
90
-
91
-    // CPT page meta
92
-    array('name' => __('Post Type Page Meta Settings', 'geodirectory'),
93
-        'type' => 'sectionstart',
94
-        'desc' => '',
95
-        'id' => 'geodir_pt_meta'),
96
-
97
-    array(
98
-        'name' => __('Post type page meta title', 'geodirectory'),
99
-        'desc' => __('Enter the meta title for the post type pages.', 'geodirectory'),
100
-        'id' => 'geodir_meta_title_pt',
101
-        'type' => 'text',
102
-        'css' => 'width:100%;',
103
-        'std' => __('%%pt_plural%% %%in_location%% %%sep%% %%sitename%%', 'geodirectory'),
104
-        'placeholder' => '%%pt_plural%% %%in_location%% %%sep%% %%sitename%%'
105
-    ),
106
-
107
-    array(
108
-        'name' => __('Post type page meta description', 'geodirectory'),
109
-        'desc' => __('Enter the meta description for the post type pages.', 'geodirectory'),
110
-        'id' => 'geodir_meta_desc_pt',
111
-        'type' => 'textarea',
112
-        'css' => 'width:100%;',
113
-        'std' => __('%%pt_plural%% %%in_location%%', 'geodirectory'),
114
-        'placeholder' => '%%pt_plural%% %%in_location%%'
115
-    ),
116
-
117
-    array(
118
-        'name' => __('Post type page title', 'geodirectory'),
119
-        'desc' => __('Enter the title for the post type pages.', 'geodirectory'),
120
-        'id' => 'geodir_page_title_pt',
121
-        'type' => 'text',
122
-        'css' => 'width:100%;',
123
-        'std' => __('All %%pt_plural%% %%in_location_single%%', 'geodirectory'),
124
-        'placeholder' => 'All %%pt_plural%% %%in_location_single%%'
125
-    ),
126
-
127
-    array('type' => 'sectionend', 'id' => 'geodir_pt_meta'),
128
-
129
-    // Cat listing page meta
130
-    array('name' => __('Listing Page Meta Settings', 'geodirectory'),
131
-        'type' => 'sectionstart',
132
-        'desc' => '',
133
-        'id' => 'geodir_pt_meta'),
134
-
135
-    array(
136
-        'name' => __('Listing page meta title', 'geodirectory'),
137
-        'desc' => __('Enter the meta title for the category listing pages.', 'geodirectory'),
138
-        'id' => 'geodir_meta_title_listing',
139
-        'type' => 'text',
140
-        'css' => 'width:100%;',
141
-        'std' => __('%%category%% %%in_location%% %%sep%% %%sitename%%', 'geodirectory'),
142
-        'placeholder' => '%%category%% %%in_location%% %%sep%% %%sitename%%'
143
-    ),
144
-
145
-    array(
146
-        'name' => __('Listing page meta description', 'geodirectory'),
147
-        'desc' => __('Enter the meta description for the category listing pages.', 'geodirectory'),
148
-        'id' => 'geodir_meta_desc_listing',
149
-        'type' => 'textarea',
150
-        'css' => 'width:100%;',
151
-        'std' => __('Posts related to Category: %%category%% %%in_location%%', 'geodirectory'),
152
-        'placeholder' => 'Posts related to Category: %%category%% %%in_location%%'
153
-    ),
154
-
155
-    array(
156
-        'name' => __('Category listing page title', 'geodirectory'),
157
-        'desc' => __('Enter the title for the category listing pages.', 'geodirectory'),
158
-        'id' => 'geodir_page_title_cat-listing',
159
-        'type' => 'text',
160
-        'css' => 'width:100%;',
161
-        'std' => __('All %%category%% %%in_location_single%%', 'geodirectory'),
162
-        'placeholder' => 'All %%category%% %%in_location_single%%'
163
-    ),
164
-
165
-    array(
166
-        'name' => __('Tag listing page title', 'geodirectory'),
167
-        'desc' => __('Enter the title for the tag listing pages.', 'geodirectory'),
168
-        'id' => 'geodir_page_title_tag-listing',
169
-        'type' => 'text',
170
-        'css' => 'width:100%;',
171
-        'std' => __('Tag: %%tag%% %%in_location_single%%', 'geodirectory'),
172
-        'placeholder' => 'Tag: %%tag%% %%in_location_single%%'
173
-    ),
174
-
175
-    array('type' => 'sectionend', 'id' => 'geodir_location_meta'),
176
-
177
-    // location page meta
178
-    array('name' => __('Location Page Meta Settings', 'geodirectory'),
179
-        'type' => 'sectionstart',
180
-        'desc' => '',
181
-        'id' => 'geodir_pt_meta'),
182
-
183
-    array(
184
-        'name' => __('Location page meta title', 'geodirectory'),
185
-        'desc' => __('Enter the meta title for the location pages.', 'geodirectory'),
186
-        'id' => 'geodir_meta_title_location',
187
-        'type' => 'text',
188
-        'css' => 'width:100%;',
189
-        'std' => __('%%title%% %%location%% %%sep%% %%sitename%%', 'geodirectory'),
190
-        'placeholder' => '%%title%% %%location%% %%sep%% %%sitename%%'
191
-    ),
192
-
193
-    array(
194
-        'name' => __('Location page meta description', 'geodirectory'),
195
-        'desc' => __('Enter the meta description for the location pages.', 'geodirectory'),
196
-        'id' => 'geodir_meta_desc_location',
197
-        'type' => 'textarea',
198
-        'css' => 'width:100%;',
199
-        'std' => __('%%location%%', 'geodirectory'),
200
-        'placeholder' => '%%location%%'
201
-    ),
202
-
203
-    array('type' => 'sectionend', 'id' => 'geodir_location_meta'),
204
-
205
-    // Search page meta
206
-    array('name' => __('Search Page Meta Settings', 'geodirectory'),
207
-        'type' => 'sectionstart',
208
-        'desc' => '',
209
-        'id' => 'geodir_pt_meta'),
210
-
211
-    array(
212
-        'name' => __('Search page meta title', 'geodirectory'),
213
-        'desc' => __('Enter the meta title for the search page.', 'geodirectory'),
214
-        'id' => 'geodir_meta_title_search',
215
-        'type' => 'text',
216
-        'css' => 'width:100%;',
217
-        'std' => __('%%pt_plural%% search results for %%search_term%%, Near %%search_near%% %%sep%% %%sitename%%', 'geodirectory'),
218
-        'placeholder' => '%%pt_plural%% search results for %%search_term%%, Near %%search_near%% %%sep%% %%sitename%%'
219
-    ),
220
-
221
-    array(
222
-        'name' => __('Search page meta description', 'geodirectory'),
223
-        'desc' => __('Enter the meta description for the search page.', 'geodirectory'),
224
-        'id' => 'geodir_meta_desc_search',
225
-        'type' => 'textarea',
226
-        'css' => 'width:100%;',
227
-        'std' => __('%%pt_plural%% search results for %%search_term%%, Near %%search_near%%', 'geodirectory'),
228
-        'placeholder' => '%%pt_plural%% search results for %%search_term%%, Near %%search_near%%'
229
-    ),
230
-
231
-    array('type' => 'sectionend', 'id' => 'geodir_location_meta'),
232
-
233
-    //Add listing page meta
234
-    array('name' => __('Add Listing Page Meta Settings', 'geodirectory'),
235
-        'type' => 'sectionstart',
236
-        'desc' => '',
237
-        'id' => 'geodir_pt_meta'),
238
-
239
-    array(
240
-        'name' => __('Add listing page meta title', 'geodirectory'),
241
-        'desc' => __('Enter the meta title for the add listing page.', 'geodirectory'),
242
-        'id' => 'geodir_meta_title_add-listing',
243
-        'type' => 'text',
244
-        'css' => 'width:100%;',
245
-        'std' => __('Add %%pt_single%% %%sep%% %%sitename%%', 'geodirectory'),
246
-        'placeholder' => 'Add %%pt_single%% %%sep%% %%sitename%%'
247
-    ),
248
-
249
-    array(
250
-        'name' => __('Add listing page meta description', 'geodirectory'),
251
-        'desc' => __('Enter the meta description for the add listing page.', 'geodirectory'),
252
-        'id' => 'geodir_meta_desc_add-listing',
253
-        'type' => 'textarea',
254
-        'css' => 'width:100%;',
255
-        'std' => __('Add %%pt_single%%', 'geodirectory'),
256
-        'placeholder' => 'Add %%pt_single%%'
257
-    ),
258
-
259
-    array(
260
-        'name' => __('Add listing page title', 'geodirectory'),
261
-        'desc' => __('Enter the title for the add listing page.', 'geodirectory'),
262
-        'id' => 'geodir_page_title_add-listing',
263
-        'type' => 'text',
264
-        'css' => 'width:100%;',
265
-        'std' => __('Add %%pt_single%%', 'geodirectory'),
266
-        'placeholder' => 'Add %%pt_single%%'
267
-    ),
268
-
269
-    array(
270
-        'name' => __('Edit listing page title', 'geodirectory'),
271
-        'desc' => __('Enter the title for the edit listing page.', 'geodirectory'),
272
-        'id' => 'geodir_page_title_edit-listing',
273
-        'type' => 'text',
274
-        'css' => 'width:100%;',
275
-        'std' => __('Edit %%pt_single%%', 'geodirectory'),
276
-        'placeholder' => 'Edit %%pt_single%%'
277
-    ),
278
-
279
-    array('type' => 'sectionend', 'id' => 'geodir_location_meta'),
280
-
281
-    //Author page meta
282
-    array('name' => __('Author Page Meta Settings', 'geodirectory'),
283
-        'type' => 'sectionstart',
284
-        'desc' => '',
285
-        'id' => 'geodir_pt_meta'),
286
-
287
-    array(
288
-        'name' => __('Author page meta title', 'geodirectory'),
289
-        'desc' => __('Enter the meta title for the author page.', 'geodirectory'),
290
-        'id' => 'geodir_meta_title_author',
291
-        'type' => 'text',
292
-        'css' => 'width:100%;',
293
-        'std' => __('Author: %%name%% %%sep%% %%sitename%%', 'geodirectory'),
294
-        'placeholder' => 'Author: %%name%% %%sep%% %%sitename%%'
295
-    ),
296
-
297
-    array(
298
-        'name' => __('Author page meta description', 'geodirectory'),
299
-        'desc' => __('Enter the meta description for the author page.', 'geodirectory'),
300
-        'id' => 'geodir_meta_desc_author',
301
-        'type' => 'textarea',
302
-        'css' => 'width:100%;',
303
-        'std' => ''
304
-    ),
305
-
306
-    array(
307
-        'name' => __('Author page title', 'geodirectory'),
308
-        'desc' => __('Enter the title for the author page.', 'geodirectory'),
309
-        'id' => 'geodir_page_title_author',
310
-        'type' => 'text',
311
-        'css' => 'width:100%;',
312
-        'std' => __('%%pt_plural%% by: %%name%%', 'geodirectory'),
313
-        'placeholder' => '%%pt_plural%% by: %%name%%'
314
-    ),
315
-
316
-    array(
317
-        'name' => __('Author favorite page title', 'geodirectory'),
318
-        'desc' => __('Enter the title for the author favorite page.', 'geodirectory'),
319
-        'id' => 'geodir_page_title_favorite',
320
-        'type' => 'text',
321
-        'css' => 'width:100%;',
322
-        'std' => __('%%name%%: Favorite %%pt_plural%%', 'geodirectory'),
323
-        'placeholder' => '%%name%%: Favorite %%pt_plural%%'
324
-    ),
325
-
326
-    array('type' => 'sectionend', 'id' => 'geodir_location_meta'),
327
-
328
-    //Login page meta
329
-    array('name' => __('Login Page Meta Settings', 'geodirectory'),
330
-        'type' => 'sectionstart',
331
-        'desc' => '',
332
-        'id' => 'geodir_login_meta'),
333
-
334
-    array(
335
-        'name' => __('Login page meta title', 'geodirectory'),
336
-        'desc' => __('Enter the meta title for the login page.', 'geodirectory'),
337
-        'id' => 'geodir_meta_title_login',
338
-        'type' => 'text',
339
-        'css' => 'width:100%;',
340
-        'std' => __('%%title%% %%sep%% %%sitename%%', 'geodirectory'),
341
-        'placeholder' => '%%title%% %%sep%% %%sitename%%'
342
-    ),
343
-
344
-    array(
345
-        'name' => __('Login page meta description', 'geodirectory'),
346
-        'desc' => __('Enter the meta description for the login page.', 'geodirectory'),
347
-        'id' => 'geodir_meta_desc_login',
348
-        'type' => 'textarea',
349
-        'css' => 'width:100%;',
350
-        'std' => ''
351
-    ),
352
-
353
-    array('type' => 'sectionend', 'id' => 'geodir_login_meta'),
354
-
355
-    //Listing success page meta
356
-    array('name' => __('Listing Success Page Meta Settings', 'geodirectory'),
357
-        'type' => 'sectionstart',
358
-        'desc' => '',
359
-        'id' => 'geodir_login_meta'),
360
-
361
-    array(
362
-        'name' => __('Listing success page meta title', 'geodirectory'),
363
-        'desc' => __('Enter the meta title for the listing success page.', 'geodirectory'),
364
-        'id' => 'geodir_meta_title_listing-success',
365
-        'type' => 'text',
366
-        'css' => 'width:100%;',
367
-        'std' => __('%%title%% %%sep%% %%sitename%%', 'geodirectory'),
368
-        'placeholder' => '%%title%% %%sep%% %%sitename%%'
369
-    ),
370
-
371
-    array(
372
-        'name' => __('Listing success page meta description', 'geodirectory'),
373
-        'desc' => __('Enter the meta description for the listing success page.', 'geodirectory'),
374
-        'id' => 'geodir_meta_desc_listing-success',
375
-        'type' => 'textarea',
376
-        'css' => 'width:100%;',
377
-        'std' => ''
378
-    ),
379
-
380
-    array('type' => 'sectionend', 'id' => 'geodir_login_meta'),
24
+	/* Listing Permalink Settings start */
25
+	array('name' => __('Title / Meta', 'geodirectory'), 'type' => 'no_tabs', 'desc' => 'Settings to set page title and meta', 'id' => 'geodir_title_meta_settings '),
26
+
27
+
28
+
29
+
30
+	array('name' => $gd_wpseo_use.__('Available Variables', 'geodirectory'),
31
+		'desc' => __('%%title%%, %%sitename%%, %%sitedesc%%, %%excerpt%%, %%pt_single%%, %%pt_plural%%, %%category%%, %%id%%, %%sep%%, %%location%%, %%in_location%%, %%in_location_single%%, %%location_single%%, %%search_term%%, %%search_near%%, %%name%%, %%page%%, %%pagenumber%%, %%pagetotal%%', 'geodirectory'),
32
+		'type' => 'sectionstart',
33
+		'id' => 'geodir_meta_vars'),
34
+
35
+	array('type' => 'sectionend', 'id' => 'geodir_meta_vars'),
36
+
37
+	array('name' => __('Homepage Meta Settings', 'geodirectory'),
38
+		'type' => 'sectionstart',
39
+		'desc' => '',
40
+		'id' => 'geodir_home_meta'),
41
+
42
+	array(
43
+		'name' => __('Homepage meta title', 'geodirectory'),
44
+		'desc' => __('This will use the title of the page set as frontpage if left blank.', 'geodirectory'),
45
+		'id' => 'geodir_meta_title_homepage',
46
+		'type' => 'text',
47
+		'css' => 'width:100%;',
48
+		'std' => '',
49
+		'placeholder' => ''
50
+	),
51
+
52
+	array(
53
+		'name' => __('Homepage meta description', 'geodirectory'),
54
+		'desc' => __('Enter the meta description for the homepage.', 'geodirectory'),
55
+		'id' => 'geodir_meta_desc_homepage',
56
+		'type' => 'textarea',
57
+		'css' => 'width:100%;',
58
+		'std' => ''
59
+	),
60
+
61
+	array('type' => 'sectionend', 'id' => 'geodir_home_meta'),
62
+
63
+	// details page meta
64
+	array('name' => __('Details Page Meta Settings', 'geodirectory'),
65
+		'type' => 'sectionstart',
66
+		'desc' => '',
67
+		'id' => 'geodir_details_meta'),
68
+
69
+	array(
70
+		'name' => __('Details page meta title', 'geodirectory'),
71
+		'desc' => __('Enter the meta title for the details page.', 'geodirectory'),
72
+		'id' => 'geodir_meta_title_detail',
73
+		'type' => 'text',
74
+		'css' => 'width:100%;',
75
+		'std' => __('%%title%% %%sep%% %%sitename%%', 'geodirectory'),
76
+		'placeholder' => '%%title%% %%sep%% %%sitename%%'
77
+	),
78
+
79
+	array(
80
+		'name' => __('Details page meta description', 'geodirectory'),
81
+		'desc' => __('Enter the meta description for the details page.', 'geodirectory'),
82
+		'id' => 'geodir_meta_desc_detail',
83
+		'type' => 'textarea',
84
+		'css' => 'width:100%;',
85
+		'std' => __('%%excerpt%%', 'geodirectory'),
86
+		'placeholder' => '%%excerpt%%'
87
+	),
88
+
89
+	array('type' => 'sectionend', 'id' => 'geodir_details_meta'),
90
+
91
+	// CPT page meta
92
+	array('name' => __('Post Type Page Meta Settings', 'geodirectory'),
93
+		'type' => 'sectionstart',
94
+		'desc' => '',
95
+		'id' => 'geodir_pt_meta'),
96
+
97
+	array(
98
+		'name' => __('Post type page meta title', 'geodirectory'),
99
+		'desc' => __('Enter the meta title for the post type pages.', 'geodirectory'),
100
+		'id' => 'geodir_meta_title_pt',
101
+		'type' => 'text',
102
+		'css' => 'width:100%;',
103
+		'std' => __('%%pt_plural%% %%in_location%% %%sep%% %%sitename%%', 'geodirectory'),
104
+		'placeholder' => '%%pt_plural%% %%in_location%% %%sep%% %%sitename%%'
105
+	),
106
+
107
+	array(
108
+		'name' => __('Post type page meta description', 'geodirectory'),
109
+		'desc' => __('Enter the meta description for the post type pages.', 'geodirectory'),
110
+		'id' => 'geodir_meta_desc_pt',
111
+		'type' => 'textarea',
112
+		'css' => 'width:100%;',
113
+		'std' => __('%%pt_plural%% %%in_location%%', 'geodirectory'),
114
+		'placeholder' => '%%pt_plural%% %%in_location%%'
115
+	),
116
+
117
+	array(
118
+		'name' => __('Post type page title', 'geodirectory'),
119
+		'desc' => __('Enter the title for the post type pages.', 'geodirectory'),
120
+		'id' => 'geodir_page_title_pt',
121
+		'type' => 'text',
122
+		'css' => 'width:100%;',
123
+		'std' => __('All %%pt_plural%% %%in_location_single%%', 'geodirectory'),
124
+		'placeholder' => 'All %%pt_plural%% %%in_location_single%%'
125
+	),
126
+
127
+	array('type' => 'sectionend', 'id' => 'geodir_pt_meta'),
128
+
129
+	// Cat listing page meta
130
+	array('name' => __('Listing Page Meta Settings', 'geodirectory'),
131
+		'type' => 'sectionstart',
132
+		'desc' => '',
133
+		'id' => 'geodir_pt_meta'),
134
+
135
+	array(
136
+		'name' => __('Listing page meta title', 'geodirectory'),
137
+		'desc' => __('Enter the meta title for the category listing pages.', 'geodirectory'),
138
+		'id' => 'geodir_meta_title_listing',
139
+		'type' => 'text',
140
+		'css' => 'width:100%;',
141
+		'std' => __('%%category%% %%in_location%% %%sep%% %%sitename%%', 'geodirectory'),
142
+		'placeholder' => '%%category%% %%in_location%% %%sep%% %%sitename%%'
143
+	),
144
+
145
+	array(
146
+		'name' => __('Listing page meta description', 'geodirectory'),
147
+		'desc' => __('Enter the meta description for the category listing pages.', 'geodirectory'),
148
+		'id' => 'geodir_meta_desc_listing',
149
+		'type' => 'textarea',
150
+		'css' => 'width:100%;',
151
+		'std' => __('Posts related to Category: %%category%% %%in_location%%', 'geodirectory'),
152
+		'placeholder' => 'Posts related to Category: %%category%% %%in_location%%'
153
+	),
154
+
155
+	array(
156
+		'name' => __('Category listing page title', 'geodirectory'),
157
+		'desc' => __('Enter the title for the category listing pages.', 'geodirectory'),
158
+		'id' => 'geodir_page_title_cat-listing',
159
+		'type' => 'text',
160
+		'css' => 'width:100%;',
161
+		'std' => __('All %%category%% %%in_location_single%%', 'geodirectory'),
162
+		'placeholder' => 'All %%category%% %%in_location_single%%'
163
+	),
164
+
165
+	array(
166
+		'name' => __('Tag listing page title', 'geodirectory'),
167
+		'desc' => __('Enter the title for the tag listing pages.', 'geodirectory'),
168
+		'id' => 'geodir_page_title_tag-listing',
169
+		'type' => 'text',
170
+		'css' => 'width:100%;',
171
+		'std' => __('Tag: %%tag%% %%in_location_single%%', 'geodirectory'),
172
+		'placeholder' => 'Tag: %%tag%% %%in_location_single%%'
173
+	),
174
+
175
+	array('type' => 'sectionend', 'id' => 'geodir_location_meta'),
176
+
177
+	// location page meta
178
+	array('name' => __('Location Page Meta Settings', 'geodirectory'),
179
+		'type' => 'sectionstart',
180
+		'desc' => '',
181
+		'id' => 'geodir_pt_meta'),
182
+
183
+	array(
184
+		'name' => __('Location page meta title', 'geodirectory'),
185
+		'desc' => __('Enter the meta title for the location pages.', 'geodirectory'),
186
+		'id' => 'geodir_meta_title_location',
187
+		'type' => 'text',
188
+		'css' => 'width:100%;',
189
+		'std' => __('%%title%% %%location%% %%sep%% %%sitename%%', 'geodirectory'),
190
+		'placeholder' => '%%title%% %%location%% %%sep%% %%sitename%%'
191
+	),
192
+
193
+	array(
194
+		'name' => __('Location page meta description', 'geodirectory'),
195
+		'desc' => __('Enter the meta description for the location pages.', 'geodirectory'),
196
+		'id' => 'geodir_meta_desc_location',
197
+		'type' => 'textarea',
198
+		'css' => 'width:100%;',
199
+		'std' => __('%%location%%', 'geodirectory'),
200
+		'placeholder' => '%%location%%'
201
+	),
202
+
203
+	array('type' => 'sectionend', 'id' => 'geodir_location_meta'),
204
+
205
+	// Search page meta
206
+	array('name' => __('Search Page Meta Settings', 'geodirectory'),
207
+		'type' => 'sectionstart',
208
+		'desc' => '',
209
+		'id' => 'geodir_pt_meta'),
210
+
211
+	array(
212
+		'name' => __('Search page meta title', 'geodirectory'),
213
+		'desc' => __('Enter the meta title for the search page.', 'geodirectory'),
214
+		'id' => 'geodir_meta_title_search',
215
+		'type' => 'text',
216
+		'css' => 'width:100%;',
217
+		'std' => __('%%pt_plural%% search results for %%search_term%%, Near %%search_near%% %%sep%% %%sitename%%', 'geodirectory'),
218
+		'placeholder' => '%%pt_plural%% search results for %%search_term%%, Near %%search_near%% %%sep%% %%sitename%%'
219
+	),
220
+
221
+	array(
222
+		'name' => __('Search page meta description', 'geodirectory'),
223
+		'desc' => __('Enter the meta description for the search page.', 'geodirectory'),
224
+		'id' => 'geodir_meta_desc_search',
225
+		'type' => 'textarea',
226
+		'css' => 'width:100%;',
227
+		'std' => __('%%pt_plural%% search results for %%search_term%%, Near %%search_near%%', 'geodirectory'),
228
+		'placeholder' => '%%pt_plural%% search results for %%search_term%%, Near %%search_near%%'
229
+	),
230
+
231
+	array('type' => 'sectionend', 'id' => 'geodir_location_meta'),
232
+
233
+	//Add listing page meta
234
+	array('name' => __('Add Listing Page Meta Settings', 'geodirectory'),
235
+		'type' => 'sectionstart',
236
+		'desc' => '',
237
+		'id' => 'geodir_pt_meta'),
238
+
239
+	array(
240
+		'name' => __('Add listing page meta title', 'geodirectory'),
241
+		'desc' => __('Enter the meta title for the add listing page.', 'geodirectory'),
242
+		'id' => 'geodir_meta_title_add-listing',
243
+		'type' => 'text',
244
+		'css' => 'width:100%;',
245
+		'std' => __('Add %%pt_single%% %%sep%% %%sitename%%', 'geodirectory'),
246
+		'placeholder' => 'Add %%pt_single%% %%sep%% %%sitename%%'
247
+	),
248
+
249
+	array(
250
+		'name' => __('Add listing page meta description', 'geodirectory'),
251
+		'desc' => __('Enter the meta description for the add listing page.', 'geodirectory'),
252
+		'id' => 'geodir_meta_desc_add-listing',
253
+		'type' => 'textarea',
254
+		'css' => 'width:100%;',
255
+		'std' => __('Add %%pt_single%%', 'geodirectory'),
256
+		'placeholder' => 'Add %%pt_single%%'
257
+	),
258
+
259
+	array(
260
+		'name' => __('Add listing page title', 'geodirectory'),
261
+		'desc' => __('Enter the title for the add listing page.', 'geodirectory'),
262
+		'id' => 'geodir_page_title_add-listing',
263
+		'type' => 'text',
264
+		'css' => 'width:100%;',
265
+		'std' => __('Add %%pt_single%%', 'geodirectory'),
266
+		'placeholder' => 'Add %%pt_single%%'
267
+	),
268
+
269
+	array(
270
+		'name' => __('Edit listing page title', 'geodirectory'),
271
+		'desc' => __('Enter the title for the edit listing page.', 'geodirectory'),
272
+		'id' => 'geodir_page_title_edit-listing',
273
+		'type' => 'text',
274
+		'css' => 'width:100%;',
275
+		'std' => __('Edit %%pt_single%%', 'geodirectory'),
276
+		'placeholder' => 'Edit %%pt_single%%'
277
+	),
278
+
279
+	array('type' => 'sectionend', 'id' => 'geodir_location_meta'),
280
+
281
+	//Author page meta
282
+	array('name' => __('Author Page Meta Settings', 'geodirectory'),
283
+		'type' => 'sectionstart',
284
+		'desc' => '',
285
+		'id' => 'geodir_pt_meta'),
286
+
287
+	array(
288
+		'name' => __('Author page meta title', 'geodirectory'),
289
+		'desc' => __('Enter the meta title for the author page.', 'geodirectory'),
290
+		'id' => 'geodir_meta_title_author',
291
+		'type' => 'text',
292
+		'css' => 'width:100%;',
293
+		'std' => __('Author: %%name%% %%sep%% %%sitename%%', 'geodirectory'),
294
+		'placeholder' => 'Author: %%name%% %%sep%% %%sitename%%'
295
+	),
296
+
297
+	array(
298
+		'name' => __('Author page meta description', 'geodirectory'),
299
+		'desc' => __('Enter the meta description for the author page.', 'geodirectory'),
300
+		'id' => 'geodir_meta_desc_author',
301
+		'type' => 'textarea',
302
+		'css' => 'width:100%;',
303
+		'std' => ''
304
+	),
305
+
306
+	array(
307
+		'name' => __('Author page title', 'geodirectory'),
308
+		'desc' => __('Enter the title for the author page.', 'geodirectory'),
309
+		'id' => 'geodir_page_title_author',
310
+		'type' => 'text',
311
+		'css' => 'width:100%;',
312
+		'std' => __('%%pt_plural%% by: %%name%%', 'geodirectory'),
313
+		'placeholder' => '%%pt_plural%% by: %%name%%'
314
+	),
315
+
316
+	array(
317
+		'name' => __('Author favorite page title', 'geodirectory'),
318
+		'desc' => __('Enter the title for the author favorite page.', 'geodirectory'),
319
+		'id' => 'geodir_page_title_favorite',
320
+		'type' => 'text',
321
+		'css' => 'width:100%;',
322
+		'std' => __('%%name%%: Favorite %%pt_plural%%', 'geodirectory'),
323
+		'placeholder' => '%%name%%: Favorite %%pt_plural%%'
324
+	),
325
+
326
+	array('type' => 'sectionend', 'id' => 'geodir_location_meta'),
327
+
328
+	//Login page meta
329
+	array('name' => __('Login Page Meta Settings', 'geodirectory'),
330
+		'type' => 'sectionstart',
331
+		'desc' => '',
332
+		'id' => 'geodir_login_meta'),
333
+
334
+	array(
335
+		'name' => __('Login page meta title', 'geodirectory'),
336
+		'desc' => __('Enter the meta title for the login page.', 'geodirectory'),
337
+		'id' => 'geodir_meta_title_login',
338
+		'type' => 'text',
339
+		'css' => 'width:100%;',
340
+		'std' => __('%%title%% %%sep%% %%sitename%%', 'geodirectory'),
341
+		'placeholder' => '%%title%% %%sep%% %%sitename%%'
342
+	),
343
+
344
+	array(
345
+		'name' => __('Login page meta description', 'geodirectory'),
346
+		'desc' => __('Enter the meta description for the login page.', 'geodirectory'),
347
+		'id' => 'geodir_meta_desc_login',
348
+		'type' => 'textarea',
349
+		'css' => 'width:100%;',
350
+		'std' => ''
351
+	),
352
+
353
+	array('type' => 'sectionend', 'id' => 'geodir_login_meta'),
354
+
355
+	//Listing success page meta
356
+	array('name' => __('Listing Success Page Meta Settings', 'geodirectory'),
357
+		'type' => 'sectionstart',
358
+		'desc' => '',
359
+		'id' => 'geodir_login_meta'),
360
+
361
+	array(
362
+		'name' => __('Listing success page meta title', 'geodirectory'),
363
+		'desc' => __('Enter the meta title for the listing success page.', 'geodirectory'),
364
+		'id' => 'geodir_meta_title_listing-success',
365
+		'type' => 'text',
366
+		'css' => 'width:100%;',
367
+		'std' => __('%%title%% %%sep%% %%sitename%%', 'geodirectory'),
368
+		'placeholder' => '%%title%% %%sep%% %%sitename%%'
369
+	),
370
+
371
+	array(
372
+		'name' => __('Listing success page meta description', 'geodirectory'),
373
+		'desc' => __('Enter the meta description for the listing success page.', 'geodirectory'),
374
+		'id' => 'geodir_meta_desc_listing-success',
375
+		'type' => 'textarea',
376
+		'css' => 'width:100%;',
377
+		'std' => ''
378
+	),
379
+
380
+	array('type' => 'sectionend', 'id' => 'geodir_login_meta'),
381 381
 
382 382
 
383 383
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
 $gd_wpseo_use = '';
12 12
 if (class_exists('WPSEO_Frontend') || class_exists('All_in_One_SEO_Pack')) {
13
-    $gd_wpseo_use = "<b style='color:red;'>".__('Please use the WPSEO settings instead.','geodirectory')."</b><br />";
13
+    $gd_wpseo_use = "<b style='color:red;'>".__('Please use the WPSEO settings instead.', 'geodirectory')."</b><br />";
14 14
 }
15 15
 
16 16
 /**
Please login to merge, or discard this patch.
geodirectory-admin/geodir_admin_ajax.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 	 *
13 13
 	 * @since 1.0.0
14 14
 	 */
15
-	include_once(geodir_plugin_path() . '/geodirectory-admin/option-pages/create_field.php');
15
+	include_once(geodir_plugin_path().'/geodirectory-admin/option-pages/create_field.php');
16 16
     die;
17 17
 }
18 18
 
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@
 block discarded – undo
13 13
 	 * @since 1.0.0
14 14
 	 */
15 15
 	include_once(geodir_plugin_path() . '/geodirectory-admin/option-pages/create_field.php');
16
-    gd_die();
16
+	gd_die();
17 17
 }
18 18
 
19 19
 
20 20
 if (isset($_REQUEST['ajax_action']) && $_REQUEST['ajax_action'] != '') {
21
-    switch ($_REQUEST['ajax_action']):
22
-        case 'get_cat_dl':
23
-            geodir_get_categories_dl($_REQUEST['post_type'], $_REQUEST['selected'], false, true);
24
-            break;
25
-    endswitch;
21
+	switch ($_REQUEST['ajax_action']):
22
+		case 'get_cat_dl':
23
+			geodir_get_categories_dl($_REQUEST['post_type'], $_REQUEST['selected'], false, true);
24
+			break;
25
+	endswitch;
26 26
 }
27 27
\ No newline at end of file
Please login to merge, or discard this patch.
geodirectory-widgets/geodirectory_features_widget.php 2 patches
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         ?>
34 34
         <?php if ($title) {
35 35
         echo '<div class="geodir_list_heading clearfix">';
36
-        echo $before_title . $title . $after_title;
36
+        echo $before_title.$title.$after_title;
37 37
         echo '</div>';
38 38
     } ?>
39 39
         <?php
@@ -42,16 +42,16 @@  discard block
 block discarded – undo
42 42
         $i = 1;
43 43
         while ($i < 100) {
44 44
 
45
-            if (isset($instance['title' . $i]) || isset($instance['image' . $i]) || isset($instance['desc' . $i])) {
45
+            if (isset($instance['title'.$i]) || isset($instance['image'.$i]) || isset($instance['desc'.$i])) {
46 46
                 echo "<li>";
47
-                if ($instance['title' . $i]) {
48
-                    echo "<h3 class='gd-fe-title'>" . $instance['title' . $i] . "</h3>";
47
+                if ($instance['title'.$i]) {
48
+                    echo "<h3 class='gd-fe-title'>".$instance['title'.$i]."</h3>";
49 49
                 }
50
-                if ($instance['image' . $i]) {
51
-                    echo "<div class='gd-fe-image'>" . gd_features_parse_image($instance['image' . $i], $icon_color) . "</div>";
50
+                if ($instance['image'.$i]) {
51
+                    echo "<div class='gd-fe-image'>".gd_features_parse_image($instance['image'.$i], $icon_color)."</div>";
52 52
                 }
53
-                if ($instance['desc' . $i]) {
54
-                    echo "<div class='gd-fe-desc'>" . gd_features_parse_desc($instance['desc' . $i]) . "</div>";
53
+                if ($instance['desc'.$i]) {
54
+                    echo "<div class='gd-fe-desc'>".gd_features_parse_desc($instance['desc'.$i])."</div>";
55 55
                 }
56 56
                 echo "</li>";
57 57
             } else {
@@ -78,15 +78,15 @@  discard block
 block discarded – undo
78 78
         $i = 1;
79 79
         while ($i < 100) {
80 80
 
81
-            if (isset($new_instance['title' . $i]) || isset($new_instance['image' . $i]) || isset($new_instance['desc' . $i])) {
82
-                if ($new_instance['title' . $i]) {
83
-                    $instance['title' . $i] = $new_instance['title' . $i];
81
+            if (isset($new_instance['title'.$i]) || isset($new_instance['image'.$i]) || isset($new_instance['desc'.$i])) {
82
+                if ($new_instance['title'.$i]) {
83
+                    $instance['title'.$i] = $new_instance['title'.$i];
84 84
                 }
85
-                if ($new_instance['image' . $i]) {
86
-                    $instance['image' . $i] = $new_instance['image' . $i];
85
+                if ($new_instance['image'.$i]) {
86
+                    $instance['image'.$i] = $new_instance['image'.$i];
87 87
                 }
88
-                if ($new_instance['desc' . $i]) {
89
-                    $instance['desc' . $i] = $new_instance['desc' . $i];
88
+                if ($new_instance['desc'.$i]) {
89
+                    $instance['desc'.$i] = $new_instance['desc'.$i];
90 90
                 }
91 91
             } else {
92 92
                 break;
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     public function form($instance)
102 102
     {
103 103
         //widgetform in backend
104
-        $instance = wp_parse_args((array)$instance, array(
104
+        $instance = wp_parse_args((array) $instance, array(
105 105
             'title' => '',
106 106
             'icon_color' => '#757575',
107 107
             'title1' => '',
@@ -138,35 +138,35 @@  discard block
 block discarded – undo
138 138
         </p>
139 139
 
140 140
 
141
-        <div class="gd-fet-rep-<?php echo $this->get_field_id('xxx');?>">
141
+        <div class="gd-fet-rep-<?php echo $this->get_field_id('xxx'); ?>">
142 142
             <?php
143 143
 
144 144
             $i = 1;
145 145
             while ($i < 100) {
146 146
 
147
-                if ( $i==1 || (isset($instance['title' . $i]) || isset($instance['image' . $i]) || isset($instance['desc' . $i])) && ($instance['title' . $i] || $instance['image' . $i] || $instance['desc' . $i])) {
147
+                if ($i == 1 || (isset($instance['title'.$i]) || isset($instance['image'.$i]) || isset($instance['desc'.$i])) && ($instance['title'.$i] || $instance['image'.$i] || $instance['desc'.$i])) {
148 148
                     ?>
149
-                    <div class="gdrep<?php echo $i;?>">
149
+                    <div class="gdrep<?php echo $i; ?>">
150 150
                         <p class="features-title">
151 151
                             <label
152 152
                                 data-gdrep-title-num="1"><?php printf(__('Title %d:', 'geodirectory'), $i); ?></label>
153
-                            <input data-gdrep-title="1" name="<?php echo $this->get_field_name('title' . $i); ?>"
154
-                                   type="text" value="<?php echo esc_attr(strip_tags($instance['title' . $i])); ?>"
153
+                            <input data-gdrep-title="1" name="<?php echo $this->get_field_name('title'.$i); ?>"
154
+                                   type="text" value="<?php echo esc_attr(strip_tags($instance['title'.$i])); ?>"
155 155
                                    class="widefat"/>
156 156
                         </p>
157 157
 
158 158
                         <p class="features-image">
159 159
                             <label><?php echo __('Image URL:', 'geodirectory'); ?></label>
160 160
                             <input data-gdrep-image="1" type="text" class="widefat"
161
-                                   name="<?php echo $this->get_field_name('image' . $i); ?>"
162
-                                   value="<?php echo esc_attr(strip_tags($instance['image' . $i])); ?>"/>
161
+                                   name="<?php echo $this->get_field_name('image'.$i); ?>"
162
+                                   value="<?php echo esc_attr(strip_tags($instance['image'.$i])); ?>"/>
163 163
                         </p>
164 164
 
165 165
                         <p class="features-desc">
166 166
                             <label><?php echo __('Description:', 'geodirectory'); ?></label>
167
-                            <textarea data-gdrep-desc="1" name="<?php echo $this->get_field_name('desc' . $i); ?>"
167
+                            <textarea data-gdrep-desc="1" name="<?php echo $this->get_field_name('desc'.$i); ?>"
168 168
                                       rows="3"
169
-                                      class="widefat"><?php echo esc_attr(strip_tags($instance['desc' . $i])); ?></textarea>
169
+                                      class="widefat"><?php echo esc_attr(strip_tags($instance['desc'.$i])); ?></textarea>
170 170
                         </p>
171 171
                     </div>
172 172
                 <?php
@@ -179,8 +179,8 @@  discard block
 block discarded – undo
179 179
 
180 180
             ?>
181 181
             <input class="button button-primary left"
182
-                   onclick="gd_featured_widget_repeat('gd-fet-rep-<?php echo $this->get_field_id('xxx');?>','<?php echo $this->get_field_name('xxx');?>')"
183
-                   type="button" value="<?php _e('Add item', 'geodirectory');?>"/>
182
+                   onclick="gd_featured_widget_repeat('gd-fet-rep-<?php echo $this->get_field_id('xxx'); ?>','<?php echo $this->get_field_name('xxx'); ?>')"
183
+                   type="button" value="<?php _e('Add item', 'geodirectory'); ?>"/>
184 184
         </div>
185 185
 
186 186
 
@@ -193,12 +193,12 @@  discard block
 block discarded – undo
193 193
 function gd_features_parse_image($image, $icon_color)
194 194
 {
195 195
     if (substr($image, 0, 4) === "http") {
196
-        $image = '<img src="' . $image . '" />';
196
+        $image = '<img src="'.$image.'" />';
197 197
     } elseif (substr($image, 0, 3) === "fa-") {
198 198
         if (empty($icon_color)) {
199 199
             $icon_color = '#757575';
200 200
         }
201
-        $image = '<i style="color:' . $icon_color . '" class="fa ' . $image . '"></i>';
201
+        $image = '<i style="color:'.$icon_color.'" class="fa '.$image.'"></i>';
202 202
     }
203 203
     return $image;
204 204
 }
Please login to merge, or discard this patch.
Indentation   +128 added lines, -128 removed lines patch added patch discarded remove patch
@@ -3,117 +3,117 @@  discard block
 block discarded – undo
3 3
 class Geodir_Features_Widget extends WP_Widget
4 4
 {
5 5
 
6
-    /**
7
-     * Class constructor.
8
-     */
9
-    public function __construct()
10
-    {
11
-        $widget_ops = array(
12
-            'description' => __('Displays "GD Features" widget', 'geodirectory'),
13
-            'classname' => 'widget_gd_features',
14
-        );
15
-        parent::__construct(false, $name = _x('GD > Features', 'widget name', 'geodirectory'), $widget_ops);
16
-
17
-    }
18
-
19
-    /**
20
-     * Display the widget.
21
-     *
22
-     * @param array $args Widget arguments.
23
-     * @param array $instance The widget settings, as saved by the user.
24
-     */
25
-    public function widget($args, $instance)
26
-    {
27
-        extract($args);
28
-
29
-        $title = empty($instance['title']) ? '' : apply_filters('gd_features_widget_title', __($instance['title'], 'geodirectory'));
30
-        $icon_color = empty($instance['icon_color']) ? '#757575' : apply_filters('gd_features_widget_icon_color', __($instance['icon_color'], 'geodirectory'));
31
-
32
-        echo $before_widget;
33
-        ?>
6
+	/**
7
+	 * Class constructor.
8
+	 */
9
+	public function __construct()
10
+	{
11
+		$widget_ops = array(
12
+			'description' => __('Displays "GD Features" widget', 'geodirectory'),
13
+			'classname' => 'widget_gd_features',
14
+		);
15
+		parent::__construct(false, $name = _x('GD > Features', 'widget name', 'geodirectory'), $widget_ops);
16
+
17
+	}
18
+
19
+	/**
20
+	 * Display the widget.
21
+	 *
22
+	 * @param array $args Widget arguments.
23
+	 * @param array $instance The widget settings, as saved by the user.
24
+	 */
25
+	public function widget($args, $instance)
26
+	{
27
+		extract($args);
28
+
29
+		$title = empty($instance['title']) ? '' : apply_filters('gd_features_widget_title', __($instance['title'], 'geodirectory'));
30
+		$icon_color = empty($instance['icon_color']) ? '#757575' : apply_filters('gd_features_widget_icon_color', __($instance['icon_color'], 'geodirectory'));
31
+
32
+		echo $before_widget;
33
+		?>
34 34
         <?php if ($title) {
35
-        echo '<div class="geodir_list_heading clearfix">';
36
-        echo $before_title . $title . $after_title;
37
-        echo '</div>';
38
-    } ?>
35
+		echo '<div class="geodir_list_heading clearfix">';
36
+		echo $before_title . $title . $after_title;
37
+		echo '</div>';
38
+	} ?>
39 39
         <?php
40
-        echo "<ul class='gd-features'>";
41
-
42
-        $i = 1;
43
-        while ($i < 100) {
44
-
45
-            if (isset($instance['title' . $i]) || isset($instance['image' . $i]) || isset($instance['desc' . $i])) {
46
-                echo "<li>";
47
-                if ($instance['title' . $i]) {
48
-                    echo "<h3 class='gd-fe-title'>" . $instance['title' . $i] . "</h3>";
49
-                }
50
-                if ($instance['image' . $i]) {
51
-                    echo "<div class='gd-fe-image'>" . gd_features_parse_image($instance['image' . $i], $icon_color) . "</div>";
52
-                }
53
-                if ($instance['desc' . $i]) {
54
-                    echo "<div class='gd-fe-desc'>" . gd_features_parse_desc($instance['desc' . $i]) . "</div>";
55
-                }
56
-                echo "</li>";
57
-            } else {
58
-                break;
59
-            }
60
-
61
-            $i++;
62
-        }
63
-
64
-        echo "</ul>";
65
-        ?>
40
+		echo "<ul class='gd-features'>";
41
+
42
+		$i = 1;
43
+		while ($i < 100) {
44
+
45
+			if (isset($instance['title' . $i]) || isset($instance['image' . $i]) || isset($instance['desc' . $i])) {
46
+				echo "<li>";
47
+				if ($instance['title' . $i]) {
48
+					echo "<h3 class='gd-fe-title'>" . $instance['title' . $i] . "</h3>";
49
+				}
50
+				if ($instance['image' . $i]) {
51
+					echo "<div class='gd-fe-image'>" . gd_features_parse_image($instance['image' . $i], $icon_color) . "</div>";
52
+				}
53
+				if ($instance['desc' . $i]) {
54
+					echo "<div class='gd-fe-desc'>" . gd_features_parse_desc($instance['desc' . $i]) . "</div>";
55
+				}
56
+				echo "</li>";
57
+			} else {
58
+				break;
59
+			}
60
+
61
+			$i++;
62
+		}
63
+
64
+		echo "</ul>";
65
+		?>
66 66
         <?php echo $after_widget; ?>
67 67
     <?php
68
-    }
69
-
70
-    public function update($new_instance, $old_instance)
71
-    {
72
-        //save the widget
73
-        $instance = $old_instance;
74
-
75
-        $instance['title'] = strip_tags($new_instance['title']);
76
-        $instance['icon_color'] = strip_tags($new_instance['icon_color']);
77
-
78
-        $i = 1;
79
-        while ($i < 100) {
80
-
81
-            if (isset($new_instance['title' . $i]) || isset($new_instance['image' . $i]) || isset($new_instance['desc' . $i])) {
82
-                if ($new_instance['title' . $i]) {
83
-                    $instance['title' . $i] = $new_instance['title' . $i];
84
-                }
85
-                if ($new_instance['image' . $i]) {
86
-                    $instance['image' . $i] = $new_instance['image' . $i];
87
-                }
88
-                if ($new_instance['desc' . $i]) {
89
-                    $instance['desc' . $i] = $new_instance['desc' . $i];
90
-                }
91
-            } else {
92
-                break;
93
-            }
94
-
95
-            $i++;
96
-        }
97
-
98
-        return $instance;
99
-    }
100
-
101
-    public function form($instance)
102
-    {
103
-        //widgetform in backend
104
-        $instance = wp_parse_args((array)$instance, array(
105
-            'title' => '',
106
-            'icon_color' => '#757575',
107
-            'title1' => '',
108
-            'image1' => '',
109
-            'desc1' => '',
110
-        ));
111
-
112
-
113
-        $title = strip_tags($instance['title']);
114
-        $icon_color = strip_tags($instance['icon_color']);
115
-
116
-        ?>
68
+	}
69
+
70
+	public function update($new_instance, $old_instance)
71
+	{
72
+		//save the widget
73
+		$instance = $old_instance;
74
+
75
+		$instance['title'] = strip_tags($new_instance['title']);
76
+		$instance['icon_color'] = strip_tags($new_instance['icon_color']);
77
+
78
+		$i = 1;
79
+		while ($i < 100) {
80
+
81
+			if (isset($new_instance['title' . $i]) || isset($new_instance['image' . $i]) || isset($new_instance['desc' . $i])) {
82
+				if ($new_instance['title' . $i]) {
83
+					$instance['title' . $i] = $new_instance['title' . $i];
84
+				}
85
+				if ($new_instance['image' . $i]) {
86
+					$instance['image' . $i] = $new_instance['image' . $i];
87
+				}
88
+				if ($new_instance['desc' . $i]) {
89
+					$instance['desc' . $i] = $new_instance['desc' . $i];
90
+				}
91
+			} else {
92
+				break;
93
+			}
94
+
95
+			$i++;
96
+		}
97
+
98
+		return $instance;
99
+	}
100
+
101
+	public function form($instance)
102
+	{
103
+		//widgetform in backend
104
+		$instance = wp_parse_args((array)$instance, array(
105
+			'title' => '',
106
+			'icon_color' => '#757575',
107
+			'title1' => '',
108
+			'image1' => '',
109
+			'desc1' => '',
110
+		));
111
+
112
+
113
+		$title = strip_tags($instance['title']);
114
+		$icon_color = strip_tags($instance['icon_color']);
115
+
116
+		?>
117 117
         <p>
118 118
             <b>Heads Up!</b> If you don't have enough content, You can keep some boxes blank.
119 119
         </p>
@@ -141,11 +141,11 @@  discard block
 block discarded – undo
141 141
         <div class="gd-fet-rep-<?php echo $this->get_field_id('xxx');?>">
142 142
             <?php
143 143
 
144
-            $i = 1;
145
-            while ($i < 100) {
144
+			$i = 1;
145
+			while ($i < 100) {
146 146
 
147
-                if ( $i==1 || (isset($instance['title' . $i]) || isset($instance['image' . $i]) || isset($instance['desc' . $i])) && ($instance['title' . $i] || $instance['image' . $i] || $instance['desc' . $i])) {
148
-                    ?>
147
+				if ( $i==1 || (isset($instance['title' . $i]) || isset($instance['image' . $i]) || isset($instance['desc' . $i])) && ($instance['title' . $i] || $instance['image' . $i] || $instance['desc' . $i])) {
148
+					?>
149 149
                     <div class="gdrep<?php echo $i;?>">
150 150
                         <p class="features-title">
151 151
                             <label
@@ -170,14 +170,14 @@  discard block
 block discarded – undo
170 170
                         </p>
171 171
                     </div>
172 172
                 <?php
173
-                } else {
174
-                    break;
175
-                }
173
+				} else {
174
+					break;
175
+				}
176 176
 
177
-                $i++;
178
-            }
177
+				$i++;
178
+			}
179 179
 
180
-            ?>
180
+			?>
181 181
             <input class="button button-primary left"
182 182
                    onclick="gd_featured_widget_repeat('gd-fet-rep-<?php echo $this->get_field_id('xxx');?>','<?php echo $this->get_field_name('xxx');?>')"
183 183
                    type="button" value="<?php _e('Add item', 'geodirectory');?>"/>
@@ -185,25 +185,25 @@  discard block
 block discarded – undo
185 185
 
186 186
 
187 187
     <?php
188
-    }
188
+	}
189 189
 
190 190
 }
191 191
 
192 192
 register_widget("Geodir_Features_Widget");
193 193
 function gd_features_parse_image($image, $icon_color)
194 194
 {
195
-    if (substr($image, 0, 4) === "http") {
196
-        $image = '<img src="' . $image . '" />';
197
-    } elseif (substr($image, 0, 3) === "fa-") {
198
-        if (empty($icon_color)) {
199
-            $icon_color = '#757575';
200
-        }
201
-        $image = '<i style="color:' . $icon_color . '" class="fa ' . $image . '"></i>';
202
-    }
203
-    return $image;
195
+	if (substr($image, 0, 4) === "http") {
196
+		$image = '<img src="' . $image . '" />';
197
+	} elseif (substr($image, 0, 3) === "fa-") {
198
+		if (empty($icon_color)) {
199
+			$icon_color = '#757575';
200
+		}
201
+		$image = '<i style="color:' . $icon_color . '" class="fa ' . $image . '"></i>';
202
+	}
203
+	return $image;
204 204
 }
205 205
 
206 206
 function gd_features_parse_desc($desc)
207 207
 {
208
-    return $desc;
208
+	return $desc;
209 209
 }
Please login to merge, or discard this patch.
tests/lib/wordpress-tests-lib/includes/mock-mailer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-require_once( ABSPATH . '/wp-includes/class-phpmailer.php' );
2
+require_once(ABSPATH.'/wp-includes/class-phpmailer.php');
3 3
 
4 4
 class MockPHPMailer extends PHPMailer {
5 5
 	var $mock_sent = array();
Please login to merge, or discard this patch.
tests/lib/wordpress-tests-lib/includes/testcase-xmlrpc.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2
-include_once(ABSPATH . 'wp-admin/includes/admin.php');
3
-include_once(ABSPATH . WPINC . '/class-IXR.php');
4
-include_once(ABSPATH . WPINC . '/class-wp-xmlrpc-server.php');
2
+include_once(ABSPATH.'wp-admin/includes/admin.php');
3
+include_once(ABSPATH.WPINC.'/class-IXR.php');
4
+include_once(ABSPATH.WPINC.'/class-wp-xmlrpc-server.php');
5 5
 
6 6
 class WP_XMLRPC_UnitTestCase extends WP_UnitTestCase {
7 7
 	protected $myxmlrpcserver;
@@ -9,21 +9,21 @@  discard block
 block discarded – undo
9 9
 	function setUp() {
10 10
 		parent::setUp();
11 11
 
12
-		add_filter( 'pre_option_enable_xmlrpc', '__return_true' );
12
+		add_filter('pre_option_enable_xmlrpc', '__return_true');
13 13
 
14 14
 		$this->myxmlrpcserver = new wp_xmlrpc_server();
15 15
 	}
16 16
 
17 17
 	function tearDown() {
18
-		remove_filter( 'pre_option_enable_xmlrpc', '__return_true' );
18
+		remove_filter('pre_option_enable_xmlrpc', '__return_true');
19 19
 
20 20
 		$this->remove_added_uploads();
21 21
 
22 22
 		parent::tearDown();
23 23
 	}
24 24
 
25
-	protected function make_user_by_role( $role ) {
26
-		return self::factory()->user->create( array(
25
+	protected function make_user_by_role($role) {
26
+		return self::factory()->user->create(array(
27 27
 			'user_login' => $role,
28 28
 			'user_pass'  => $role,
29 29
 			'role'       => $role
Please login to merge, or discard this patch.
tests/lib/wordpress-tests-lib/includes/trac.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -13,46 +13,46 @@
 block discarded – undo
13 13
 	 *
14 14
 	 * @return bool|null true if the ticket is resolved, false if not resolved, null on error
15 15
 	 */
16
-	public static function isTracTicketClosed( $trac_url, $ticket_id ) {
17
-		if ( ! extension_loaded( 'openssl' ) ) {
18
-			$trac_url = preg_replace( "/^https:/", "http:", $trac_url );
16
+	public static function isTracTicketClosed($trac_url, $ticket_id) {
17
+		if (!extension_loaded('openssl')) {
18
+			$trac_url = preg_replace("/^https:/", "http:", $trac_url);
19 19
 		}
20 20
 
21
-		if ( ! isset( self::$trac_ticket_cache[ $trac_url ] ) ) {
21
+		if (!isset(self::$trac_ticket_cache[$trac_url])) {
22 22
 			// In case you're running the tests offline, keep track of open tickets.
23
-			$file = DIR_TESTDATA . '/.trac-ticket-cache.' . str_replace( array( 'http://', 'https://', '/' ), array( '', '', '-' ), rtrim( $trac_url, '/' ) );
24
-			$tickets = @file_get_contents( $trac_url . '/query?status=%21closed&format=csv&col=id' );
23
+			$file = DIR_TESTDATA.'/.trac-ticket-cache.'.str_replace(array('http://', 'https://', '/'), array('', '', '-'), rtrim($trac_url, '/'));
24
+			$tickets = @file_get_contents($trac_url.'/query?status=%21closed&format=csv&col=id');
25 25
 			// Check if our HTTP request failed.
26
-			if ( false === $tickets ) {
27
-				if ( file_exists( $file ) ) {
28
-					register_shutdown_function( array( 'TracTickets', 'usingLocalCache' ) );
29
-					$tickets = file_get_contents( $file );
26
+			if (false === $tickets) {
27
+				if (file_exists($file)) {
28
+					register_shutdown_function(array('TracTickets', 'usingLocalCache'));
29
+					$tickets = file_get_contents($file);
30 30
 				} else {
31
-					register_shutdown_function( array( 'TracTickets', 'forcingKnownBugs' ) );
32
-					self::$trac_ticket_cache[ $trac_url ] = array();
31
+					register_shutdown_function(array('TracTickets', 'forcingKnownBugs'));
32
+					self::$trac_ticket_cache[$trac_url] = array();
33 33
 					return true; // Assume the ticket is closed, which means it gets run.
34 34
 				}
35 35
 			} else {
36
-				$tickets = substr( $tickets, 2 ); // remove 'id' column header
37
-				$tickets = trim( $tickets );
38
-				file_put_contents( $file, $tickets );
36
+				$tickets = substr($tickets, 2); // remove 'id' column header
37
+				$tickets = trim($tickets);
38
+				file_put_contents($file, $tickets);
39 39
 			}
40
-			$tickets = explode( "\r\n", $tickets );
41
-			self::$trac_ticket_cache[ $trac_url ] = $tickets;
40
+			$tickets = explode("\r\n", $tickets);
41
+			self::$trac_ticket_cache[$trac_url] = $tickets;
42 42
 		}
43 43
 
44
-		return ! in_array( $ticket_id, self::$trac_ticket_cache[ $trac_url ] );
44
+		return !in_array($ticket_id, self::$trac_ticket_cache[$trac_url]);
45 45
 	}
46 46
 
47 47
 	public static function usingLocalCache() {
48
-		echo PHP_EOL . "\x1b[0m\x1b[30;43m\x1b[2K";
49
-		echo 'INFO: Trac was inaccessible, so a local ticket status cache was used.' . PHP_EOL;
48
+		echo PHP_EOL."\x1b[0m\x1b[30;43m\x1b[2K";
49
+		echo 'INFO: Trac was inaccessible, so a local ticket status cache was used.'.PHP_EOL;
50 50
 		echo "\x1b[0m\x1b[2K";
51 51
 	}
52 52
 
53 53
 	public static function forcingKnownBugs() {
54
-		echo PHP_EOL . "\x1b[0m\x1b[37;41m\x1b[2K";
55
-		echo "ERROR: Trac was inaccessible, so known bugs weren't able to be skipped." . PHP_EOL;
54
+		echo PHP_EOL."\x1b[0m\x1b[37;41m\x1b[2K";
55
+		echo "ERROR: Trac was inaccessible, so known bugs weren't able to be skipped.".PHP_EOL;
56 56
 		echo "\x1b[0m\x1b[2K";
57 57
 	}
58 58
 }
Please login to merge, or discard this patch.
geodirectory-templates/reg_frm.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,13 +38,13 @@
 block discarded – undo
38 38
         <?php
39 39
         global $geodir_signup_error;
40 40
         if ($geodir_signup_error != '') {
41
-            echo '<p class="error_msg">' . $geodir_signup_error . '</p>';
41
+            echo '<p class="error_msg">'.$geodir_signup_error.'</p>';
42 42
             unset($geodir_signup_error);
43 43
         } else {
44 44
             if (isset($_REQUEST['emsg']) && $_REQUEST['emsg'] == 1) {
45
-                echo '<p class="error_msg">' . EMAIL_USERNAME_EXIST_MSG . '</p>';
45
+                echo '<p class="error_msg">'.EMAIL_USERNAME_EXIST_MSG.'</p>';
46 46
             } else if (isset($_REQUEST['emsg']) && $_REQUEST['emsg'] == 'regnewusr') {
47
-                echo '<p class="error_msg">' . REGISTRATION_DESABLED_MSG . '</p>';
47
+                echo '<p class="error_msg">'.REGISTRATION_DESABLED_MSG.'</p>';
48 48
             }
49 49
         }
50 50
         ?>
Please login to merge, or discard this patch.
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -9,13 +9,13 @@  discard block
 block discarded – undo
9 9
  * @package GeoDirectory
10 10
  */
11 11
 if (isset($_GET['redirect_to']) && $_GET['redirect_to'] != '') {
12
-    $redirect_to = $_GET['redirect_to'];
12
+	$redirect_to = $_GET['redirect_to'];
13 13
 } else {
14
-    //echo $_SERVER['HTTP_HOST'] ;
15
-    $redirect_to = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';
16
-    if (strpos($redirect_to, $_SERVER['HTTP_HOST']) === false) {
17
-        $redirect_to = home_url();
18
-    }
14
+	//echo $_SERVER['HTTP_HOST'] ;
15
+	$redirect_to = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';
16
+	if (strpos($redirect_to, $_SERVER['HTTP_HOST']) === false) {
17
+		$redirect_to = home_url();
18
+	}
19 19
 }
20 20
 ?>
21 21
 <div id="sign_up">
@@ -26,28 +26,28 @@  discard block
 block discarded – undo
26 26
         <h4>
27 27
             <?php
28 28
 
29
-            /**
30
-             * Filter the `REGISTRATION_NOW_TEXT` title text on the register form template.
31
-             *
32
-             * @since 1.0.0
33
-             */
34
-            echo apply_filters('geodir_registration_page_title', REGISTRATION_NOW_TEXT);
29
+			/**
30
+			 * Filter the `REGISTRATION_NOW_TEXT` title text on the register form template.
31
+			 *
32
+			 * @since 1.0.0
33
+			 */
34
+			echo apply_filters('geodir_registration_page_title', REGISTRATION_NOW_TEXT);
35 35
 
36
-            ?>
36
+			?>
37 37
         </h4>
38 38
         <?php
39
-        global $geodir_signup_error;
40
-        if ($geodir_signup_error != '') {
41
-            echo '<p class="error_msg">' . $geodir_signup_error . '</p>';
42
-            unset($geodir_signup_error);
43
-        } else {
44
-            if (isset($_REQUEST['emsg']) && $_REQUEST['emsg'] == 1) {
45
-                echo '<p class="error_msg">' . EMAIL_USERNAME_EXIST_MSG . '</p>';
46
-            } else if (isset($_REQUEST['emsg']) && $_REQUEST['emsg'] == 'regnewusr') {
47
-                echo '<p class="error_msg">' . REGISTRATION_DESABLED_MSG . '</p>';
48
-            }
49
-        }
50
-        ?>
39
+		global $geodir_signup_error;
40
+		if ($geodir_signup_error != '') {
41
+			echo '<p class="error_msg">' . $geodir_signup_error . '</p>';
42
+			unset($geodir_signup_error);
43
+		} else {
44
+			if (isset($_REQUEST['emsg']) && $_REQUEST['emsg'] == 1) {
45
+				echo '<p class="error_msg">' . EMAIL_USERNAME_EXIST_MSG . '</p>';
46
+			} else if (isset($_REQUEST['emsg']) && $_REQUEST['emsg'] == 'regnewusr') {
47
+				echo '<p class="error_msg">' . REGISTRATION_DESABLED_MSG . '</p>';
48
+			}
49
+		}
50
+		?>
51 51
 
52 52
         <form name="cus_registerform" id="cus_registerform" method="post">
53 53
             <input type="hidden" name="action" value="register"/>
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
                 <div class="form_row clearfix">
58 58
                     <input placeholder='<?php echo FIRST_NAME_TEXT; ?>' type="text" name="user_fname" id="user_fname"
59 59
                            class="textfield" value="<?php if (isset($user_fname)) {
60
-                        echo esc_attr(stripslashes($user_fname));
61
-                    } ?>" size="25"/>
60
+						echo esc_attr(stripslashes($user_fname));
61
+					} ?>" size="25"/>
62 62
                     <span id="user_fnameInfo"></span>
63 63
                 </div>
64 64
             </div>
@@ -66,10 +66,10 @@  discard block
 block discarded – undo
66 66
             <div class="form_row clearfix">
67 67
                 <input placeholder='<?php echo EMAIL_TEXT; ?>' type="text" name="user_email" id="user_email"
68 68
                        class="textfield" value="<?php global $user_email;
69
-                if (!isset($user_email)) {
70
-                    $user_email = '';
71
-                }
72
-                echo esc_attr(stripslashes($user_email)); ?>" size="25"/>
69
+				if (!isset($user_email)) {
70
+					$user_email = '';
71
+				}
72
+				echo esc_attr(stripslashes($user_email)); ?>" size="25"/>
73 73
 
74 74
                 <?php if (!get_option('geodir_allow_cpass')) { ?>
75 75
 				<div id="reg_passmail">
@@ -100,14 +100,14 @@  discard block
 block discarded – undo
100 100
             <?php } ?>
101 101
 
102 102
             <?php
103
-            /**
104
-             * Called just before the register new user button on the register form template.
105
-             *
106
-             * Also used by other plugins to add social connect buttons.
107
-             *
108
-             * @since 1.0.0
109
-             */
110
-            do_action('social_connect_form'); ?>
103
+			/**
104
+			 * Called just before the register new user button on the register form template.
105
+			 *
106
+			 * Also used by other plugins to add social connect buttons.
107
+			 *
108
+			 * @since 1.0.0
109
+			 */
110
+			do_action('social_connect_form'); ?>
111 111
             <input type="submit" name="registernow" value="<?php echo REGISTER_NOW_TEXT; ?>" class="geodir_button"/>
112 112
         </form>
113 113
     </div>
Please login to merge, or discard this patch.