Home › Forums › Back End › Redefinition of parameter $options › Reply To: Redefinition of parameter $options
January 30, 2016 at 5:25 am
#237514
Ayanize
Participant
Thanks for your reply. One of our clients pointed that out. And I guess I figured this out. I am yet to test this on php7 . Still will seek your expert opinion
Here is the public function
public function process_imports( $content = true, $options = true, $options = true, $widgets = true) {
if ( $content && !empty( $this->content_demo ) && is_file( $this->content_demo ) ) {
$this->set_demo_data( $this->content_demo );
}
if ( $options && !empty( $this->theme_options_file ) && is_file( $this->theme_options_file ) ) {
$this->set_demo_theme_options( $this->theme_options_file );
}
if ( $options ) {
$this->set_demo_menus();
}
if ( $widgets && !empty( $this->widgets ) && is_file( $this->widgets ) ) {
$this->process_widget_import_file( $this->widgets );
}
do_action( 'radium_import_end');
}
I guess the I need to remove on value here
$options = true