Updating to v1.4 throws errors due to new empty options
-
With the new update the new $options don’t exist until you’ve saved the settings
wp-content/plugins/auto-hide-admin-bar/auto-hide-admin-bar.php:170
:if ( ( $options[ 'arrow' ] != '' ) && ( is_numeric( $options[ 'arrow' ] ) ) ) {
wp-content/plugins/auto-hide-admin-bar/auto-hide-admin-bar.php:170
:if ( ( $options[ 'arrow_pos' ] != '' ) && ( is_string( $options[ 'arrow_pos' ] ) ) ) {
Surely the better way to do these checks instead of
!= ''
would be to use!empty($options[ 'arrow' ])
?That way it’d make sure the key exists and that it’s not blank.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Updating to v1.4 throws errors due to new empty options’ is closed to new replies.