From 70946bb14b47390bd2c2d386199af6a08df9e3bf Mon Sep 17 00:00:00 2001 From: Tim Hughes Date: Wed, 20 Nov 2019 10:11:13 +0000 Subject: [PATCH] Fix for issue #17 PHP error --- CHANGES.md | 27 +++++++++++++++++++++++++++ README.md | 3 +++ classicpress-seo.php | 5 ++--- 3 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 CHANGES.md diff --git a/CHANGES.md b/CHANGES.md new file mode 100644 index 0000000..63b9a7d --- /dev/null +++ b/CHANGES.md @@ -0,0 +1,27 @@ +#### v 0.3.2 / 2019-11-20 +* FIX: Fix for #17: PHP error "call_user_func_array() expects parameter 1 to be a valid callback, function on_login not found or invalid function name" + +#### v 0.3.1 / 2019-11-18 +* FIX: Classic SEO icon size in admin menu + +#### v 0.3.0 / 2019-11-18 +* NEW: Plugin has new name. Now called Classic SEO as per [discussions on forums](https://forums.classicpress.net/t/plugin-theme-naming-conventions-when-to-use-classicpress-and-or-cp/1653/8). Note: plugin directory is still called "classicpress-seo" and the main PHP file is called "classicpress-seo.php". These will be changed in a future version. +* NEW: Added ability to set metabox position on post/page/product edit pages +* NEW: Added support for Pinterest meta tag +* NEW: Added "nosnippet", "max-snippet:\[number\]", "max-video-preview:\[number\]" and "max-image-preview:\[setting\]" Advanced Robots Meta settings. See https://webmasters.googleblog.com/2019/09/more-controls-on-search.html +* UPDATED: Schema Types updated including removal of "self-serving" review snippets +* Updated the Help page +* Plugin icon updated + +#### v 0.2.2 / 2019-10-31 +* Fixed CSS bug which prevented tab icons from displaying correctly on post edit page in admin +* Fixed bug that disabled the sitemap "Include Featured Images" feature +* Improved l8n checks +* Removed a couple of debug messages from assessor.js (forgot they were still there!) +* Removed a couple of unused files + +#### v 0.2.1 / 2019-10-27) +* Fixed issue with breadcrumbs not displaying + +#### v 0.2.0 / 2019-10-26 +* Initial public release diff --git a/README.md b/README.md index 09fabd4..9d6f9b0 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,9 @@ If you find a bug, please create an issue on the [issues page](https://github.co ## Changelog +### v 0.3.2 (Nov 20, 2019) +- FIX: Fix for #17: PHP error "call_user_func_array() expects parameter 1 to be a valid callback, function on_login not found or invalid function name" + ### v 0.3.1 (Nov 18, 2019) - FIX: Classic SEO icon size in admin menu diff --git a/classicpress-seo.php b/classicpress-seo.php index e468992..f51d80f 100644 --- a/classicpress-seo.php +++ b/classicpress-seo.php @@ -6,7 +6,7 @@ * Plugin Name: Classic SEO * Plugin URI: https://www.classicpress.net * Description: SEO solution for ClassicPress (experimental). - * Version: 0.3.1 + * Version: 0.3.2 * Author: ClassicPress Community * Author URI: https://www.classicpress.net * GitHub Plugin URI: https://github.com/ClassicPress-research/classicpress-seo @@ -37,7 +37,7 @@ class Classic_SEO { * * @var string */ - public $version = '0.3.1'; + public $version = '0.3.2'; /** * Classic SEO database version. @@ -302,7 +302,6 @@ private function init_actions() { // Booting. add_action( 'plugins_loaded', [ $this, 'init' ], 14 ); add_action( 'rest_api_init', [ $this, 'init_rest_api' ] ); - add_action( 'wp_login', [ $this, 'on_login' ] ); // Load admin-related functionality. if ( is_admin() ) {