如何解决涉及PHP函数static的错误?

时间:2020-01-13 01:26:58

标签: php wordpress function static

任何帮助都将非常受欢迎!我的网站由于一个解析错误而关闭了数周,我无法解决。

解析错误:语法错误,意外的“;”在/home/chymel/public_html/signaladvance/wp-content/themes/OLD_Divi/includes/builder/core.php中的第5662行

下面是第5661-5671行的屏幕截图,简单地是:

function et_builder_maybe_wrap_css_selector($selector, $suffix = '', $clone = true) {
  static $should_wrap_selectors = ;
  $post_id = ET_Builder_Element::get_theme_builder_layout_id();
  if ( ! isset( $should_wrap_selectors[ $post_id ] ) ) {
     $should_wrap_selectors[ $post_id ] = et_is_builder_plugin_active() ||
      et_builder_is_custom_post_type_archive() ||
      ( et_pb_is_pagebuilder_used( $post_id ) &&
        (et_builder_post_is_of_custom_post_type( $post_id ) ||
        et_theme_builder_is_layout_post_type( get_post_type( $post_id ) )
      ));

是什么导致该站点完全不显示?相反,我收到了解析错误?...

0 个答案:

没有答案
相关问题