Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes for thematic_validate_opt()

Fixed: Typo in namespacing of function props josephting
Fixed: Passing validation variable to child theme override
  • Loading branch information...
commit 3525715f1fb78c6657bce0b9d2cae24ac6a34bd5 1 parent 2e3a790
emhr authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 library/extensions/theme-options.php
View
12 library/extensions/theme-options.php
@@ -367,8 +367,8 @@ function thematic_do_legacy_opt() {
* @since Thematic 1.0
*/
if (function_exists('childtheme_override_validate_opt')) {
- function thematic_thematic_validate_opt() {
- childtheme_override_validate_opt();
+ function thematic_validate_opt($input) {
+ childtheme_override_validate_opt($input);
}
} else {
function thematic_validate_opt($input){
@@ -377,10 +377,10 @@ function thematic_validate_opt($input){
// Index Insert position must be a non-negative number
if ( !is_numeric( $input['index_insert'] ) || $input['index_insert'] < 0 ) {
add_settings_error(
- 'thematic_theme_opt',
- 'thematic_insert_opt',
- __('The index insert position value must be a number equal to or greater than zero. This setting has been reverted to the previous value.', 'thematic' ),
- 'error'
+ 'thematic_theme_opt',
+ 'thematic_insert_opt',
+ __('The index insert position value must be a number equal to or greater than zero. This setting has been reverted to the previous value.', 'thematic' ),
+ 'error'
);
} else {
// A sanitize numeric value to ensure a whole number
Please sign in to comment.
Something went wrong with that request. Please try again.