Skip to content

Commit

Permalink
Merge branch 'hotfix/1.0.11'
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmilner committed Dec 6, 2018
2 parents 97183cd + 28b628b commit b5d1e1c
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 4 deletions.
5 changes: 3 additions & 2 deletions ft-rockpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: RockPress
* Plugin URI: http://rockpresswp.com/
* Description: Display information from Rock RMS on your WordPress site.
* Version: 1.0.10
* Version: 1.0.11
* Author: RockPress <support@rockpresswp.com>
* Author URI: https://rockpresswp.com/
* Text Domain: ft-rockpress
Expand Down Expand Up @@ -66,7 +66,7 @@ class RockPress {
* @var string
* @since 1.0.0
*/
public $version = '1.0.10';
public $version = '1.0.11';

/**
* Main RockPress Instance
Expand Down Expand Up @@ -164,6 +164,7 @@ private function includes() {
require_once ROCKPRESS_PLUGIN_DIR . 'includes/class-rockpress-addon.php';
require_once ROCKPRESS_PLUGIN_DIR . 'includes/class-rockpress-options.php';
require_once ROCKPRESS_PLUGIN_DIR . 'includes/class-rockpress-customizer.php';
require_once ROCKPRESS_PLUGIN_DIR . 'includes/class-rockpress-blocks.php';
require_once ROCKPRESS_PLUGIN_DIR . 'includes/admin/admin-settings.php';
require_once ROCKPRESS_PLUGIN_DIR . 'includes/admin/settings/settings-rock.php';
require_once ROCKPRESS_PLUGIN_DIR . 'includes/admin/settings/settings-import.php';
Expand Down
51 changes: 51 additions & 0 deletions includes/class-rockpress-blocks.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?php
/**
* Blocks Initializer
*
* Enqueue CSS/JS of all the blocks.
*
* @since 1.0.11
* @package RockPress
*/

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}

/**
* RockPress Blocks class
*/
class RockPress_Blocks {

/**
* Initialize the class
*
* @since 1.0.11
*
* @return void
*/
public static function init() {
add_filter( 'block_categories', __CLASS__ . '::block_categories', 10, 2 );
}

/**
* Register a new block category for RockPress.
*
* @since 1.0.11
*
* @return void
*/
public static function block_categories( $categories, $post ) {
return array_merge(
$categories,
array(
array(
'slug' => 'rockpress',
'title' => __( 'RockPress', 'ft-rockpress' ),
),
)
);
}
}
RockPress_Blocks::init();
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
Contributors: firetree, danielmilner
Tags: church, rockrms, chms, rock rms
Requires at least: 4.3
Tested up to: 4.9
Tested up to: 5.0
Requires PHP: 5.3
Stable tag: 1.0.10
Stable tag: 1.0.11
License: GPLv2 or later
License URI: http://ww.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -41,6 +41,9 @@ Extend the capabilities of RockPress with these add-ons:

== Changelog ==

= 1.0.11 =
* Added compatibility with WordPress 5.0.

= 1.0.10 =
* Fixed some links that point to the RockPress website.

Expand Down

0 comments on commit b5d1e1c

Please sign in to comment.