From 19e1c6355c68ab9fdaef3aa3151ba270a93bf00b Mon Sep 17 00:00:00 2001 From: Oliver Juhas | WebMan Design Date: Wed, 15 Nov 2017 10:58:57 +0100 Subject: [PATCH] 1.0.3 --- changelog.md | 11 ++++++++ library/includes/classes/class-sanitize.php | 30 +++++---------------- style.css | 2 +- 3 files changed, 18 insertions(+), 25 deletions(-) diff --git a/changelog.md b/changelog.md index 2a083c9..4eb93b2 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,16 @@ # Reykjavik Changelog +## 1.0.3 + +* **Fix**: Duplicate declaration of `float()` sanitize method + +### Files changed: + + changelog.md + style.css + library/includes/classes/class-sanitize.php + + ## 1.0.2 * **Add**: Recommending Jetpack plugin installation diff --git a/library/includes/classes/class-sanitize.php b/library/includes/classes/class-sanitize.php index 970105e..d68a137 100644 --- a/library/includes/classes/class-sanitize.php +++ b/library/includes/classes/class-sanitize.php @@ -143,30 +143,6 @@ public static function multi_array( $value, $choices = array() ) { - /** - * Sanitize floating point number - * - * Sanitization callback for float number type controls. - * This callback sanitizes `$value` as a float number. - * Has to do a wrapper for `floatval()` here as otherwise - * you can get a PHP warning when using in customizer - * ("floatval() expects exactly 1 parameter, 2 given"). - * - * @since 2.5.0 - * @version 2.5.0 - * - * @param float $value - */ - public static function float( $value ) { - - // Output - - return floatval( $value ); - - } // /float - - - /** * Sanitize fonts * @@ -206,6 +182,12 @@ public static function fonts( $value, $default = '' ) { /** * Sanitize float * + * Sanitization callback for float number type controls. + * This callback sanitizes `$value` as a float number. + * Has to do a wrapper for `floatval()` here as otherwise + * you can get a PHP warning when using in customizer + * ("floatval() expects exactly 1 parameter, 2 given"). + * * @since 2.5.6 * @version 2.5.6 * diff --git a/style.css b/style.css index eb7e5f0..ce06cf1 100644 --- a/style.css +++ b/style.css @@ -3,7 +3,7 @@ Theme Name: Reykjavik Theme URI: https://www.webmandesign.eu/portfolio/reykjavik-wordpress-theme/ Author: WebMan Design Author URI: https://www.webmandesign.eu/ -Version: 1.0.2 +Version: 1.0.3 Text Domain: reykjavik Domain Path: /languages License: GNU General Public License v3