Skip to content
This repository was archived by the owner on Oct 31, 2022. It is now read-only.

Commit 7cd7c6d

Browse files
authored
Merge pull request #8 from jaredcobb/1.0.2
Remove new array syntax on main plugin file, fix subdomain validation
2 parents 012bb33 + 0da10c6 commit 7cd7c6d

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

README.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Contributors: jaredcobb
33
Tags: ccb, church, api, chms
44
Requires at least: 4.6.0
5-
Tested up to: 4.9.1
6-
Stable tag: 1.0.1
5+
Tested up to: 4.9.2
6+
Stable tag: 1.0.2
77
License: GPLv2 or later
88
License URI: http://www.gnu.org/licenses/gpl-2.0.html
99

@@ -61,6 +61,10 @@ You'll need to ensure your [group settings](https://churchcommunitybuilder.force
6161

6262
== Changelog ==
6363

64+
= 1.0.2 =
65+
* Fixed a bug to allow subdomains with dashes
66+
* Remove PHP 5.4 array syntax from the main plugin file (prevent crashes on PHP < 5.4)
67+
6468
= 1.0.1 =
6569
* Fixed a bug where terms are not populated in some circumstances
6670
* Added checks for minimum PHP and WordPress versions to prevent crashes

ccb-core.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Plugin Name: Church Community Builder Core API
1111
* Plugin URI: https://www.wpccb.com
1212
* Description: A plugin to provide a core integration of the Church Community Builder API into WordPress custom post types
13-
* Version: 1.0.1
13+
* Version: 1.0.2
1414
* Author: Jared Cobb
1515
* Author URI: https://www.jaredcobb.com/
1616
* License: GPL-2.0+
@@ -27,7 +27,7 @@
2727
define( 'CCB_CORE_PATH', plugin_dir_path( __FILE__ ) );
2828
define( 'CCB_CORE_URL', plugin_dir_url( __FILE__ ) );
2929
define( 'CCB_CORE_BASENAME', plugin_basename( __FILE__ ) );
30-
define( 'CCB_CORE_VERSION', '1.0.1' );
30+
define( 'CCB_CORE_VERSION', '1.0.2' );
3131

3232
// Check minimum requirements before proceeding.
3333
require_once CCB_CORE_PATH . 'includes/class-ccb-core-requirements.php';
@@ -37,8 +37,8 @@
3737

3838
// Code that runs during plugin activation and deactivation.
3939
require_once CCB_CORE_PATH . 'includes/class-ccb-core-activator.php';
40-
register_activation_hook( __FILE__, [ 'CCB_Core_Activator', 'activate' ] );
41-
register_deactivation_hook( __FILE__, [ 'CCB_Core_Activator', 'deactivate' ] );
40+
register_activation_hook( __FILE__, array( 'CCB_Core_Activator', 'activate' ) );
41+
register_deactivation_hook( __FILE__, array( 'CCB_Core_Activator', 'deactivate' ) );
4242

4343
// Internationalization, dashboard-specific hooks, and public-facing site hooks.
4444
require_once CCB_CORE_PATH . 'includes/class-ccb-core.php';

includes/class-ccb-core-settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function get_settings_definitions() {
170170
'field_title' => esc_html__( 'Software Subdomain', 'ccb-core' ),
171171
'field_render_function' => 'render_text',
172172
'field_placeholder' => 'subdomain',
173-
'field_validation' => 'alphanumeric',
173+
'field_validation' => 'slug',
174174
'field_tooltip' => esc_html__( 'We just need the first part of your software URL (without "http://" and without ".ccbchurch.com").', 'ccb-core' ),
175175
],
176176
'credentials' => [

0 commit comments

Comments
 (0)