Still works for PHP 8.1 and WP 6.1 – Minor fix
-
Hi.
The theme works in WordPress 6.1 and PHP 8+.
The only thing which needs change is the function “tenderSpring_custom_css” which throws a PHP Warning.
Change it to the following./** * Custom CSS support */ function tenderSpring_custom_css() { $options = get_option( 'tenderSpring_theme_options' ); if ( (is_array( $options ) ) && ( array_key_exists( 'custom_css', $options ) ) ) { $tenderSpring_customcss = $options['custom_css']; if ( $tenderSpring_customcss ) { echo "<style type='text/css'>"; echo $tenderSpring_customcss; echo '</style>'; } } }
- The topic ‘Still works for PHP 8.1 and WP 6.1 – Minor fix’ is closed to new replies.