Version Description
Download this release
Release Info
| Developer | WPBrigade |
| Plugin | |
| Version | 1.2.0 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.0 to 1.2.0
- classes/class-settings-api.php +10 -1
- readme.txt +9 -5
- wp-headers-and-footers.php +3 -3
classes/class-settings-api.php
CHANGED
|
@@ -99,7 +99,7 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
|
|
| 99 |
|
| 100 |
if ( isset( $section['desc'] ) && ! empty( $section['desc'] ) ) {
|
| 101 |
$section['desc'] = '<div class="inside">' . $section['desc'] . '</div>';
|
| 102 |
-
$callback
|
| 103 |
} elseif ( isset( $section['callback'] ) ) {
|
| 104 |
$callback = $section['callback'];
|
| 105 |
} else {
|
|
@@ -145,6 +145,15 @@ if ( ! class_exists( 'WPHeaderAndFooter_Settings_API' ) ) :
|
|
| 145 |
register_setting( $section['id'], $section['id'], array( $this, 'sanitize_options' ) );
|
| 146 |
}
|
| 147 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
|
| 149 |
/**
|
| 150 |
* Get field description for display
|
| 99 |
|
| 100 |
if ( isset( $section['desc'] ) && ! empty( $section['desc'] ) ) {
|
| 101 |
$section['desc'] = '<div class="inside">' . $section['desc'] . '</div>';
|
| 102 |
+
$callback = call_user_func( array( $this, 'get_description' ), $section['desc'] );
|
| 103 |
} elseif ( isset( $section['callback'] ) ) {
|
| 104 |
$callback = $section['callback'];
|
| 105 |
} else {
|
| 145 |
register_setting( $section['id'], $section['id'], array( $this, 'sanitize_options' ) );
|
| 146 |
}
|
| 147 |
}
|
| 148 |
+
/**
|
| 149 |
+
* Get Section Description
|
| 150 |
+
* @param string $desc [description]
|
| 151 |
+
*
|
| 152 |
+
* @since 1.1.1
|
| 153 |
+
*/
|
| 154 |
+
function get_description( $desc ) {
|
| 155 |
+
return $desc;
|
| 156 |
+
}
|
| 157 |
|
| 158 |
/**
|
| 159 |
* Get field description for display
|
readme.txt
CHANGED
|
@@ -1,10 +1,11 @@
|
|
| 1 |
=== WordPress Headers and Footers ===
|
| 2 |
-
Contributors: WPBrigade, hiddenpearls
|
|
|
|
|
|
|
| 3 |
Tags: header script, add footer script, insert header code, add script headers and footers,
|
| 4 |
-
Requires at least:
|
| 5 |
-
Tested up to: 5.
|
| 6 |
-
Stable tag: 1.
|
| 7 |
-
Requires PHP: 5.6.0
|
| 8 |
License: GPLv3 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
|
|
@@ -44,6 +45,9 @@ It helps for WordPress users to add a JS/CSS code directly in their site without
|
|
| 44 |
|
| 45 |
== Changelog ==
|
| 46 |
|
|
|
|
|
|
|
|
|
|
| 47 |
= 1.1.0 - 2020-03-21 =
|
| 48 |
* Compatibility : WordPress 5.4
|
| 49 |
* Enhancement: Dashboard Design updated.
|
| 1 |
=== WordPress Headers and Footers ===
|
| 2 |
+
Contributors: WPBrigade, hiddenpearls, desideveloper
|
| 3 |
+
Author URI: https://wpbrigade.com/?utm_source=wphf-org&utm_medium=author-url-link
|
| 4 |
+
Donate link: Author URI: https://wpbrigade.com/?utm_source=wphf-org&utm_medium=donate-url-link
|
| 5 |
Tags: header script, add footer script, insert header code, add script headers and footers,
|
| 6 |
+
Requires at least: 5.0
|
| 7 |
+
Tested up to: 5.6
|
| 8 |
+
Stable tag: 1.2.0
|
|
|
|
| 9 |
License: GPLv3 or later
|
| 10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
| 11 |
|
| 45 |
|
| 46 |
== Changelog ==
|
| 47 |
|
| 48 |
+
= 1.1.1 - 2020-12-07 = //Schedule
|
| 49 |
+
* Bugfix: Remove PHP 7 deprecated function.
|
| 50 |
+
|
| 51 |
= 1.1.0 - 2020-03-21 =
|
| 52 |
* Compatibility : WordPress 5.4
|
| 53 |
* Enhancement: Dashboard Design updated.
|
wp-headers-and-footers.php
CHANGED
|
@@ -3,9 +3,9 @@
|
|
| 3 |
* Plugin Name: WP Headers and Footers
|
| 4 |
* Plugin URI: https://www.WPBrigade.com/wordpress/plugins/wp-headers-and-footers/
|
| 5 |
* Description: Allows you to insert code or text in the header or footer of your WordPress site.
|
| 6 |
-
* Version: 1.
|
| 7 |
* Author: WPBrigade
|
| 8 |
-
* Author URI: https://
|
| 9 |
* License: GPLv3
|
| 10 |
* Text Domain: wp-headers-and-footers
|
| 11 |
* Domain Path: /languages
|
|
@@ -23,7 +23,7 @@ if ( ! class_exists( 'WPHeaderAndFooter' ) ) :
|
|
| 23 |
/**
|
| 24 |
* @var string
|
| 25 |
*/
|
| 26 |
-
public $version = '1.
|
| 27 |
|
| 28 |
/**
|
| 29 |
* @var The single instance of the class
|
| 3 |
* Plugin Name: WP Headers and Footers
|
| 4 |
* Plugin URI: https://www.WPBrigade.com/wordpress/plugins/wp-headers-and-footers/
|
| 5 |
* Description: Allows you to insert code or text in the header or footer of your WordPress site.
|
| 6 |
+
* Version: 1.2.0
|
| 7 |
* Author: WPBrigade
|
| 8 |
+
* Author URI: https://wpbrigade.com/?utm_source=plugin-meta&utm_medium=author-uri-link
|
| 9 |
* License: GPLv3
|
| 10 |
* Text Domain: wp-headers-and-footers
|
| 11 |
* Domain Path: /languages
|
| 23 |
/**
|
| 24 |
* @var string
|
| 25 |
*/
|
| 26 |
+
public $version = '1.2.0';
|
| 27 |
|
| 28 |
/**
|
| 29 |
* @var The single instance of the class
|
