Witam,

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




  1. <?php
  2. /**
  3.  * Customize Setting Class.
  4.  *
  5.  * Handles saving and sanitizing of settings.
  6.  *
  7.  * @package WordPress
  8.  * @subpackage Customize
  9.  * @since 3.4.0
  10.  */
  11. class WP_Customize_Setting {
  12. /**
  13. * @access public
  14. * @var WP_Customize_Manager
  15. */
  16. public $manager;
  17.  
  18. /**
  19. * @access public
  20. * @var string
  21. */
  22. public $id;
  23.  
  24. /**
  25. * @access public
  26. * @var string
  27. */
  28. public $type = 'theme_mod';
  29.  
  30. /**
  31. * Capability required to edit this setting.
  32. *
  33. * @var string
  34. */
  35. public $capability = 'edit_theme_options';
  36.  
  37. /**
  38. * Feature a theme is required to support to enable this setting.
  39. *
  40. * @access public
  41. * @var string
  42. */
  43. public $theme_supports = '';
  44. public $default = '';
  45. public $transport = 'refresh';
  46.  
  47. /**
  48. * Server-side sanitization callback for the setting's value.
  49. *
  50. * @var callback
  51. */
  52. public $sanitize_callback = '';
  53. public $sanitize_js_callback = '';
  54.  
  55. protected $id_data = array();
  56.  
  57. /**
  58. * Cached and sanitized $_POST value for the setting.
  59. *
  60. * @access private
  61. * @var mixed
  62. */
  63. private $_post_value;
  64.  
  65. /**
  66. * Constructor.
  67. *
  68. * Any supplied $args override class property defaults.
  69. *
  70. * @since 3.4.0
  71. *
  72. * @param WP_Customize_Manager $manager
  73. * @param string $id An specific ID of the setting. Can be a
  74. * theme mod or option name.
  75. * @param array $args Setting arguments.
  76. * @return WP_Customize_Setting $setting
  77. */
  78. public function __construct( $manager, $id, $args = array() ) {
  79. $keys = array_keys( get_object_vars( $this ) );
  80. foreach ( $keys as $key ) {
  81. if ( isset( $args[ $key ] ) )
  82. $this->$key = $args[ $key ];
  83. }
  84.  
  85. $this->manager = $manager;
  86. $this->id = $id;
  87.  
  88. // Parse the ID for array keys.
  89. $this->id_data[ 'keys' ] = preg_split( '/\[/', str_replace( ']', '', $this->id ) );
  90. $this->id_data[ 'base' ] = array_shift( $this->id_data[ 'keys' ] );
  91.  
  92. // Rebuild the ID.
  93. $this->id = $this->id_data[ 'base' ];
  94. if ( ! empty( $this->id_data[ 'keys' ] ) )
  95. $this->id .= '[' . implode( '][', $this->id_data[ 'keys' ] ) . ']';
  96.  
  97. if ( $this->sanitize_callback )
  98. add_filter( "customize_sanitize_{$this->id}", $this->sanitize_callback, 10, 2 );
  99.  
  100. if ( $this->sanitize_js_callback )
  101. add_filter( "customize_sanitize_js_{$this->id}", $this->sanitize_js_callback, 10, 2 );
  102.  
  103. return $this;
  104. }



Czy jest ktoś w stanie pomóc?