Skip to content

Commit

Permalink
1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
webmandesign committed Nov 15, 2017
1 parent 22534c3 commit 19e1c63
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 25 deletions.
11 changes: 11 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
30 changes: 6 additions & 24 deletions library/includes/classes/class-sanitize.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -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
*
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 19e1c63

Please sign in to comment.