[wp-trac] [WordPress Trac] #50796: Call to a member function add_node() on string
WordPress Trac
noreply at wordpress.org
Tue Jul 28 10:27:20 UTC 2020
#50796: Call to a member function add_node() on string
--------------------------+-----------------------------
Reporter: malthert | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.4.2
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
when using woocommerce beta tester, we get the following 2 notices in wp
core.
core needs handling for this to avoid notices.
{{{
Call to a member function add_node() on string
File: /wp-includes/admin-bar.php on line 921
Error URL: /wp-admin/post-new.php?post_type=page
Referrer: /wp-admin/post.php?post=1494&action=edit
Trace:
#0 /wp-includes/class-wp-hook.php (287): wp_admin_bar_comments_menu(
$wp_admin_bar = WP_Admin_Bar Object )
#1 /wp-includes/class-wp-hook.php (311): WP_Hook->apply_filters( $value =
NULL, $args = Array( [0] => WP_Admin_Bar Object ) )
#2 /wp-includes/plugin.php (544): WP_Hook->do_action( $args = Array( [0]
=> WP_Admin_Bar Object ) )
#3 /wp-includes/admin-bar.php (97): do_action_ref_array( $tag =
admin_bar_menu, $args = Array( [0] => WP_Admin_Bar Object ) )
#4 /wp-includes/class-wp-hook.php (287): wp_admin_bar_render()
#5 /wp-includes/class-wp-hook.php (311): WP_Hook->apply_filters( $value =
EMPTY STRING, $args = Array( [0] => ) )
#6 /wp-includes/plugin.php (478): WP_Hook->do_action( $args = Array( [0]
=> ) )
#7 /wp-admin/admin-header.php (245): do_action( $tag = in_admin_header )
#8 /wp-admin/edit-form-blocks.php (420): require_once( /wp-admin/admin-
header.php )
#9 /wp-admin/post-new.php (72): require( /wp-admin/edit-form-blocks.php )
Warning: wp.data.select( "core/editor" ).getBlocks is deprecated. Please
use wp.data.select( "core/block-editor" ).getBlocks instead.
URL: /wp-admin/post-new.php?post_type=page
File: /wp-includes/js/dist/deprecated.min.js?ver=224
Line: 2
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50796>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list