Version Description
- 2018-02-21
- PHP 7 fix for count() usage on arrays.
Download this release
Release Info
Developer | jeffikus |
Plugin | Homepage Control |
Version | 2.0.3 |
Comparing to | |
See all releases |
Code changes from version 2.0.2 to 2.0.3
- classes/class-homepage-control-customizer.php +2 -2
- homepage-control.php +5 -5
- readme.txt +14 -6
classes/class-homepage-control-customizer.php
CHANGED
@@ -95,7 +95,7 @@ class Homepage_Control_Customizer {
|
|
95 |
|
96 |
$response = array();
|
97 |
|
98 |
-
if ( isset( $wp_filter[Homepage_Control()->hook] ) && 0 <
|
99 |
foreach ( $wp_filter[Homepage_Control()->hook] as $k => $v ) {
|
100 |
if ( is_array( $v ) ) {
|
101 |
foreach ( $v as $i => $j ) {
|
@@ -152,4 +152,4 @@ class Homepage_Control_Customizer {
|
|
152 |
}
|
153 |
}
|
154 |
|
155 |
-
new Homepage_Control_Customizer();
|
95 |
|
96 |
$response = array();
|
97 |
|
98 |
+
if ( isset( $wp_filter[Homepage_Control()->hook] ) && 0 < iterator_count( $wp_filter[Homepage_Control()->hook] ) ) {
|
99 |
foreach ( $wp_filter[Homepage_Control()->hook] as $k => $v ) {
|
100 |
if ( is_array( $v ) ) {
|
101 |
foreach ( $v as $i => $j ) {
|
152 |
}
|
153 |
}
|
154 |
|
155 |
+
new Homepage_Control_Customizer();
|
homepage-control.php
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Homepage Control
|
4 |
-
* Plugin URI: http://www.
|
5 |
* Description: Hi! I'm here to assist you with re-ordering or disabling components of your theme's homepage design.
|
6 |
-
* Version: 2.0.
|
7 |
* Author: WooThemes
|
8 |
-
* Author URI: http://
|
9 |
* Requires at least: 3.8.1
|
10 |
-
* Tested up to: 4.
|
11 |
*
|
12 |
* Text Domain: homepage-control
|
13 |
* Domain Path: /languages/
|
@@ -91,7 +91,7 @@ final class Homepage_Control {
|
|
91 |
$this->token = 'homepage-control';
|
92 |
$this->plugin_url = plugin_dir_url( __FILE__ );
|
93 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
94 |
-
$this->version = '2.0.
|
95 |
$this->hook = (string)apply_filters( 'homepage_control_hook', 'homepage' );
|
96 |
|
97 |
add_action( 'plugins_loaded', array( $this, 'maybe_migrate_data' ) );
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Homepage Control
|
4 |
+
* Plugin URI: http://www.woocommerce.com/products/homepage-control/
|
5 |
* Description: Hi! I'm here to assist you with re-ordering or disabling components of your theme's homepage design.
|
6 |
+
* Version: 2.0.3
|
7 |
* Author: WooThemes
|
8 |
+
* Author URI: http://woocommerce.com/
|
9 |
* Requires at least: 3.8.1
|
10 |
+
* Tested up to: 4.9.4
|
11 |
*
|
12 |
* Text Domain: homepage-control
|
13 |
* Domain Path: /languages/
|
91 |
$this->token = 'homepage-control';
|
92 |
$this->plugin_url = plugin_dir_url( __FILE__ );
|
93 |
$this->plugin_path = plugin_dir_path( __FILE__ );
|
94 |
+
$this->version = '2.0.3';
|
95 |
$this->hook = (string)apply_filters( 'homepage_control_hook', 'homepage' );
|
96 |
|
97 |
add_action( 'plugins_loaded', array( $this, 'maybe_migrate_data' ) );
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Homepage Control ===
|
2 |
-
Contributors: woothemes,mattyza,jameskoster,tiagonoronha,jeffikus
|
3 |
-
Donate link: http://
|
4 |
Tags: homepage, hooks, theme-mod, components, customizer
|
5 |
Requires at least: 3.8.1
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -14,7 +14,7 @@ Re-order or disable the homepage components in certain themes.
|
|
14 |
|
15 |
Using Homepage Control, any theme which uses a "homepage" (or other) hook to display components on a homepage, just got better. Re-order or disable any of the homepage components added by your theme, and control the display and order of any function hooked on to the "homepage" hook.
|
16 |
|
17 |
-
Looking for a helping hand? [View plugin documentation](http://docs.
|
18 |
|
19 |
== Usage ==
|
20 |
|
@@ -47,7 +47,7 @@ Not at all. :) If you switch themes, Homepage Control will remember the homepage
|
|
47 |
|
48 |
= How do I contribute? =
|
49 |
|
50 |
-
We encourage everyone to contribute their ideas, thoughts and code snippets. This can be done by forking the [repository over at GitHub](http://github.com/
|
51 |
|
52 |
== Screenshots ==
|
53 |
|
@@ -56,6 +56,10 @@ We encourage everyone to contribute their ideas, thoughts and code snippets. Thi
|
|
56 |
|
57 |
== Upgrade Notice ==
|
58 |
|
|
|
|
|
|
|
|
|
59 |
= 2.0.2 =
|
60 |
* 2016-08-24
|
61 |
* Minor tweaks to customizer control.
|
@@ -66,6 +70,10 @@ We encourage everyone to contribute their ideas, thoughts and code snippets. Thi
|
|
66 |
|
67 |
== Changelog ==
|
68 |
|
|
|
|
|
|
|
|
|
69 |
= 2.0.2 =
|
70 |
* 2016-08-24
|
71 |
* Minor tweaks to customizer control.
|
1 |
=== Homepage Control ===
|
2 |
+
Contributors: woothemes,mattyza,jameskoster,tiagonoronha,jeffikus,danieldudzic
|
3 |
+
Donate link: http://woocommerce.com/
|
4 |
Tags: homepage, hooks, theme-mod, components, customizer
|
5 |
Requires at least: 3.8.1
|
6 |
+
Tested up to: 4.9.4
|
7 |
+
Stable tag: 2.0.3
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
14 |
|
15 |
Using Homepage Control, any theme which uses a "homepage" (or other) hook to display components on a homepage, just got better. Re-order or disable any of the homepage components added by your theme, and control the display and order of any function hooked on to the "homepage" hook.
|
16 |
|
17 |
+
Looking for a helping hand? [View plugin documentation](http://docs.woocommerce.com/document/homepage-control/).
|
18 |
|
19 |
== Usage ==
|
20 |
|
47 |
|
48 |
= How do I contribute? =
|
49 |
|
50 |
+
We encourage everyone to contribute their ideas, thoughts and code snippets. This can be done by forking the [repository over at GitHub](http://github.com/woocommerce/homepage-control/).
|
51 |
|
52 |
== Screenshots ==
|
53 |
|
56 |
|
57 |
== Upgrade Notice ==
|
58 |
|
59 |
+
= 2.0.3 =
|
60 |
+
* 2018-02-21
|
61 |
+
* PHP 7 fix for count() usage on arrays.
|
62 |
+
|
63 |
= 2.0.2 =
|
64 |
* 2016-08-24
|
65 |
* Minor tweaks to customizer control.
|
70 |
|
71 |
== Changelog ==
|
72 |
|
73 |
+
= 2.0.3 =
|
74 |
+
* 2018-02-21
|
75 |
+
* PHP 7 fix for count() usage on arrays.
|
76 |
+
|
77 |
= 2.0.2 =
|
78 |
* 2016-08-24
|
79 |
* Minor tweaks to customizer control.
|