jestem zielony jeśli chodzi o jakiekolwiek programowanie, potrafię tylko postawić wordpressa i w nim wykonywać proste modyfikacje.
Moj problem polega na tym, że w świeżo zaintalowanej templatce do WP wyskakuje błąd.
Kod
Fatal error: Only variables can be passed by reference in .../public_html/wp-includes/class-wp-customize-setting.php on line 90
<?php /** * Customize Setting Class. * * Handles saving and sanitizing of settings. * * @package WordPress * @subpackage Customize * @since 3.4.0 */ class WP_Customize_Setting { /** * @access public * @var WP_Customize_Manager */ public $manager; /** * @access public * @var string */ public $id; /** * @access public * @var string */ public $type = 'theme_mod'; /** * Capability required to edit this setting. * * @var string */ public $capability = 'edit_theme_options'; /** * Feature a theme is required to support to enable this setting. * * @access public * @var string */ public $theme_supports = ''; public $default = ''; public $transport = 'refresh'; /** * Server-side sanitization callback for the setting's value. * * @var callback */ public $sanitize_callback = ''; public $sanitize_js_callback = ''; /** * Cached and sanitized $_POST value for the setting. * * @access private * @var mixed */ private $_post_value; /** * Constructor. * * Any supplied $args override class property defaults. * * @since 3.4.0 * * @param WP_Customize_Manager $manager * @param string $id An specific ID of the setting. Can be a * theme mod or option name. * @param array $args Setting arguments. * @return WP_Customize_Setting $setting */ foreach ( $keys as $key ) { $this->$key = $args[ $key ]; } $this->manager = $manager; $this->id = $id; // Parse the ID for array keys. // Rebuild the ID. $this->id = $this->id_data[ 'base' ]; if ( $this->sanitize_callback ) add_filter( "customize_sanitize_{$this->id}", $this->sanitize_callback, 10, 2 ); if ( $this->sanitize_js_callback ) add_filter( "customize_sanitize_js_{$this->id}", $this->sanitize_js_callback, 10, 2 ); return $this; }
Czy jest ktoś w stanie pomóc?