Hi all,
I just started working on a Wordpress website. Now, on every line (both front-end and back-end) my websites gives me the following message:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Qode_Theme_Options has a deprecated constructor in [LOCATION] on line 14.
On line 14, I find the following code:
class Qode_Theme_Options {
function qode_Theme_Options() {
add_action('admin_menu', array(&$this, 'qode_admin_menu'));
add_action('admin_init', array(&$this, 'register_qode_theme_settings'));
}
function init_qode_theme_options() {
global $qode_options_theme16;
if(isset($qode_options_theme16['reset_to_defaults'])){
if( $qode_options_theme16['reset_to_defaults'] == 'yes' ) delete_option( "qode_options_theme16");
}
if (! get_option("qode_options_theme16")) {
add_option( "qode_options_theme16",
array(
"reset_to_defaults" => '',
"number_of_chars" => 45,
"first_color" => '',
"second_color" => '',
"background_color" => '',
"background_color_box" => '',
"highlight_color" => '',
"selection_color" => '',
"favicon_image" => QODE_ROOT."/img/favicon.ico",
Note that the first line of this code is line 14. The array goes on and is a list of similar items.
What I have tried:
I've been googling for a while and the problem seems quite common, but all solutions I find are for slightly different problems.