diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a53dafa5a..f5cf98b83d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file, per [the Keep a Changelog standard](http://keepachangelog.com/). +## [3.2.5] - 2019-11-20 + +* Fix WP <5.0 fatal error on register_block_type. + ## [3.2.4] - 2019-11-19 * Fix Gutenberg block initialization diff --git a/docs/install.md b/docs/install.md index 64f6d0bff3..1adc260ca2 100644 --- a/docs/install.md +++ b/docs/install.md @@ -3,6 +3,7 @@ * [Elasticsearch](https://www.elastic.co) 5.0+ **ElasticSearch max version supported: 6.4** * [WordPress](http://wordpress.org) 3.7.1+ * [PHP](https://php.net/) 5.4+ +* A properly configured web server with object caching is highly recommended. ## Install Steps diff --git a/elasticpress.php b/elasticpress.php index 89178d4720..e336d9e5ca 100644 --- a/elasticpress.php +++ b/elasticpress.php @@ -2,7 +2,7 @@ /** * Plugin Name: ElasticPress * Description: A fast and flexible search and query engine for WordPress. - * Version: 3.2.4 + * Version: 3.2.5 * Author: 10up * Author URI: http://10up.com * License: GPLv2 or later @@ -27,7 +27,7 @@ define( 'EP_URL', plugin_dir_url( __FILE__ ) ); define( 'EP_PATH', plugin_dir_path( __FILE__ ) ); -define( 'EP_VERSION', '3.2.4' ); +define( 'EP_VERSION', '3.2.5' ); /** * PSR-4-ish autoloading diff --git a/includes/classes/Feature/RelatedPosts/RelatedPosts.php b/includes/classes/Feature/RelatedPosts/RelatedPosts.php index 106ee822f7..9dd24f3b98 100644 --- a/includes/classes/Feature/RelatedPosts/RelatedPosts.php +++ b/includes/classes/Feature/RelatedPosts/RelatedPosts.php @@ -227,6 +227,11 @@ public function output_endpoint( $request ) { * @since 3.2 */ public function register_block() { + // Must be WP 5.0+ + if ( ! function_exists( 'register_block_type' ) ) { + return; + } + wp_register_script( 'elasticpress-related-posts-block', EP_URL . 'dist/js/related-posts-block-script.min.js', diff --git a/readme.txt b/readme.txt index 3b9975823f..704564c08d 100644 --- a/readme.txt +++ b/readme.txt @@ -43,6 +43,11 @@ Please refer to [Github](https://github.com/10up/ElasticPress) for detailed usag == Changelog == += 3.2.5 +This is a bug fix version. + +* Fix WP <5.0 fatal error on register_block_type. + = 3.2.4 This is a bug fix version.