Skip to content
Snippets Groups Projects
Commit 74df9797 authored by Erick Hitter's avatar Erick Hitter
Browse files

v1.3 - updated for WP 4.3

Per https://make.wordpress.org/core/2015/07/02/deprecating-php4-style-constructors-in-wordpress-4-3/, WP 4.3 deprecates PHP4-style widget constructors, and their usage will trigger deprecated notices. Switching to PHP5 constructors is simple and resolves the problem.
parent 030a6221
No related branches found
No related tags found
No related merge requests found
...@@ -3,8 +3,8 @@ Contributors: ethitter ...@@ -3,8 +3,8 @@ Contributors: ethitter
Donate link: https://ethitter.com/donate/ Donate link: https://ethitter.com/donate/
Tags: tag, tags, taxonomy, sidebar, widget, widgets, list Tags: tag, tags, taxonomy, sidebar, widget, widgets, list
Requires at least: 2.8 Requires at least: 2.8
Tested up to: 4.2 Tested up to: 4.3
Stable tag: 1.2 Stable tag: 1.3
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
...@@ -80,6 +80,9 @@ To make targeting a specific filter reference possible should you use multiple i ...@@ -80,6 +80,9 @@ To make targeting a specific filter reference possible should you use multiple i
== Changelog == == Changelog ==
= 1.3 =
* Update for WordPress 4.3 by removing PHP4-style widget constructor usage (https://make.wordpress.org/core/2015/07/02/deprecating-php4-style-constructors-in-wordpress-4-3/).
= 1.2 = = 1.2 =
* Update for WordPress 4.2 to handle term splitting in the plugin's include/exclude functionality. Details at https://make.wordpress.org/core/2015/02/16/taxonomy-term-splitting-in-4-2-a-developer-guide/. * Update for WordPress 4.2 to handle term splitting in the plugin's include/exclude functionality. Details at https://make.wordpress.org/core/2015/02/16/taxonomy-term-splitting-in-4-2-a-developer-guide/.
...@@ -121,6 +124,9 @@ To make targeting a specific filter reference possible should you use multiple i ...@@ -121,6 +124,9 @@ To make targeting a specific filter reference possible should you use multiple i
== Upgrade Notice == == Upgrade Notice ==
= 1.3 =
Updated for WordPress 4.3. Removed PHP4-style widget constructor usage (https://make.wordpress.org/core/2015/07/02/deprecating-php4-style-constructors-in-wordpress-4-3/).
= 1.2 = = 1.2 =
Updated for WordPress 4.2. Only version 2.2 or higher should be used with WordPress 4.2 or higher, otherwise included/excluded terms may reappear in dropdowns. This is due to WordPress splitting shared terms, as detailed at https://make.wordpress.org/core/2015/02/16/taxonomy-term-splitting-in-4-2-a-developer-guide/. Updated for WordPress 4.2. Only version 2.2 or higher should be used with WordPress 4.2 or higher, otherwise included/excluded terms may reappear in dropdowns. This is due to WordPress splitting shared terms, as detailed at https://make.wordpress.org/core/2015/02/16/taxonomy-term-splitting-in-4-2-a-developer-guide/.
......
...@@ -4,7 +4,7 @@ Plugin Name: Taxonomy List Widget ...@@ -4,7 +4,7 @@ Plugin Name: Taxonomy List Widget
Plugin URI: https://ethitter.com/plugins/taxonomy-list-widget/ Plugin URI: https://ethitter.com/plugins/taxonomy-list-widget/
Description: Creates a list of non-hierarchical taxonomies as an alternative to the term (tag) cloud. Widget provides numerous options to tailor the output to fit your site. List function can also be called directly for use outside of the widget. Formerly known as <strong><em>Tag List Widget</em></strong>. Description: Creates a list of non-hierarchical taxonomies as an alternative to the term (tag) cloud. Widget provides numerous options to tailor the output to fit your site. List function can also be called directly for use outside of the widget. Formerly known as <strong><em>Tag List Widget</em></strong>.
Author: Erick Hitter Author: Erick Hitter
Version: 1.2 Version: 1.3
Author URI: https://ethitter.com/ Author URI: https://ethitter.com/
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
...@@ -428,11 +428,11 @@ class taxonomy_list_widget extends WP_Widget { ...@@ -428,11 +428,11 @@ class taxonomy_list_widget extends WP_Widget {
/* /*
* Register widget and populate class variables * Register widget and populate class variables
* @uses $this::WP_Widget, $taxonomy_list_widget_plugin * @uses parent::__construct(), $taxonomy_list_widget_plugin
* @return null * @return null
*/ */
function taxonomy_list_widget() { function __construct() {
$this->WP_Widget( false, 'Taxonomy List Widget', array( 'description' => 'Displays selected non-hierarchical taxonomy terms in a list format.' ) ); parent::__construct( false, 'Taxonomy List Widget', array( 'description' => 'Displays selected non-hierarchical taxonomy terms in a list format.' ) );
//Load plugin class and populate defaults //Load plugin class and populate defaults
global $taxonomy_list_widget_plugin; global $taxonomy_list_widget_plugin;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment