diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 9139246411..e51903e442 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1096,6 +1096,8 @@ function do_meta_boxes( $screen, $context, $object ) { if ( WP_DEBUG && ! $screen->is_block_editor() && ! isset( $_GET['meta-box-loader'] ) ) { if ( is_array( $box['callback'] ) ) { $reflection = new ReflectionMethod( $box['callback'][0], $box['callback'][1] ); + } elseif ( false !== strpos( $box['callback'], '::' ) ) { + $reflection = new ReflectionMethod( $box['callback'] ); } else { $reflection = new ReflectionFunction( $box['callback'] ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 1f0f8804b2..0d1d0d20ae 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-beta1-43829'; +$wp_version = '5.0-beta1-43830'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.