[wp-trac] [WordPress Trac] #47854: When using CLI, warning printed because SERVER_NAME not defined
WordPress Trac
noreply at wordpress.org
Thu Aug 8 18:54:09 UTC 2019
#47854: When using CLI, warning printed because SERVER_NAME not defined
---------------------------+-----------------------------
Reporter: paulschreiber | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 5.2.2
Severity: normal | Keywords: has-patch
Focuses: |
---------------------------+-----------------------------
When using the WP CLI, a warning and backtrace are printed:
{{{
$ wp shell
Request URL: https://tu.test/wp-
cron.php?doing_wp_cron=1565290287.2607619762420654296875
Response Code:
PHP Notice: Undefined index: SERVER_NAME in
/srv/www/theundefeated/public_html/wp-includes/rest-api.php on line 378
PHP Stack trace:
PHP 1. {main}() /usr/local/bin/wp:0
PHP 2. include() /usr/local/bin/wp:4
PHP 3. include() phar:///usr/local/bin/wp/php/boot-phar.php:11
PHP 4. WP_CLI\bootstrap() phar:///usr/local/bin/wp/vendor/wp-cli/wp-
cli/php/wp-cli.php:27
PHP 5. WP_CLI\Bootstrap\LaunchRunner->process($state = class
WP_CLI\Bootstrap\BootstrapState { private $state = array () })
phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php:74
PHP 6. WP_CLI\Runner->start() phar:///usr/local/bin/wp/vendor/wp-cli/wp-
cli/php/WP_CLI/Bootstrap/LaunchRunner.php:23
PHP 7. WP_CLI\Runner->load_wordpress() phar:///usr/local/bin/wp/vendor
/wp-cli/wp-cli/php/WP_CLI/Runner.php:1130
PHP 8. require() phar:///usr/local/bin/wp/vendor/wp-cli/wp-
cli/php/WP_CLI/Runner.php:1209
PHP 9. do_action($tag = 'wp_loaded', $arg = *uninitialized*)
/srv/www/theundefeated/public_html/wp-settings.php:546
PHP 10. WP_Hook->do_action($args = array (0 => ''))
/srv/www/theundefeated/public_html/wp-includes/plugin.php:465
PHP 11. WP_Hook->apply_filters($value = '', $args = array (0 => ''))
/srv/www/theundefeated/public_html/wp-includes/class-wp-hook.php:310
PHP 12. Jetpack->register_assets('') /srv/www/theundefeated/public_html
/wp-includes/class-wp-hook.php:286
PHP 13. wp_script_is($handle = 'spin', $list = 'registered')
/srv/www/theundefeated/public_html/wp-content/mu-
plugins/jetpack/class.jetpack.php:1126
PHP 14. wp_scripts() /srv/www/theundefeated/public_html/wp-
includes/functions.wp-scripts.php:370
PHP 15. WP_Scripts->__construct() /srv/www/theundefeated/public_html/wp-
includes/functions.wp-scripts.php:23
PHP 16. WP_Scripts->init() /srv/www/theundefeated/public_html/wp-
includes/class.wp-scripts.php:131
PHP 17. do_action_ref_array($tag = 'wp_default_scripts', $args = array (0
=> class WP_Scripts { public $base_url = 'https://tu.test'; public
$content_url = 'https://tu.test/wp-content'; public $default_version =
'5.2.2'; public $in_footer = array (); public $concat = ''; public
$concat_version = ''; public $do_concat = FALSE; public $print_html = '';
public $print_code = ''; public $ext_handles = ''; public $ext_version =
''; public $default_dirs = array (0 => '/wp-admin/js/', 1 => '/wp-
includes/js/'); public $registered = array ('utils' => class
_WP_Dependency { public $handle = 'utils'; public $src = '/wp-
includes/js/utils.js'; public $deps = array (); public $ver = FALSE;
public $args = NULL; public $extra = array ('data' => 'var userSettings =
{"url":"\\/","uid":"0","time":"1565290287","secure":"1"};'); public
$textdomain = NULL; public $translations_path = NULL }, 'common' => class
_WP_Dependency { public $handle = 'common'; public $src = '/wp-
admin/js/common.js'; public $deps = array (0 => 'jquery', 1 =>
'hoverIntent', 2 => 'utils'); public $ver = FALSE; public $args = 1;
public $extra = array ('data' => 'var commonL10n = {"warnDelete":"You are
about to permanently delete these items from your site.\\nThis action
cannot be undone.\\n \'Cancel\' to stop, \'OK\' to
delete.","dismiss":"Dismiss this notice.","collapseMenu":"Collapse Main
menu","expandMenu":"Expand Main menu"};'); public $textdomain = NULL;
public $translations_path = NULL }, 'wp-a11y' => class _WP_Dependency {
public $handle = 'wp-a11y'; public $src = '/wp-includes/js/wp-a11y.js';
public $deps = array (0 => 'jquery'); public $ver = FALSE; public $args =
1; public $extra = array (); public $textdomain = NULL; public
$translations_path = NULL }, 'sack' => class _WP_Dependency { public
$handle = 'sack'; public $src = '/wp-includes/js/tw-sack.js'; public $deps
= array (); public $ver = '1.6.1'; public $args = 1; public $extra = array
(); public $textdomain = NULL; public $translations_path = NULL },
'quicktags' => class _WP_Dependency { public $handle = 'quicktags'; public
$src = '/wp-includes/js/quicktags.js'; public $deps = array (); public
$ver = FALSE; public $args = 1; public $extra = array ('data' => 'var
quicktagsL10n = {"closeAllOpenTags":"Close all open
tags","closeTags":"close tags","enterURL":"Enter the
URL","enterImageURL":"Enter the URL of the
image","enterImageDescription":"Enter a description of the
image","textdirection":"text direction","toggleTextdirection":"Toggle
Editor Text Direction","dfw":"Distraction-free writing
mode","strong":"Bold","strongClose":"Close bold
tag","em":"Italic","emClose":"Close italic tag","link":"Insert
link","blockquote":"Blockquote","blockquoteClose":"Close blockquote
tag","del":"Deleted text (strikethrough)","delClose":"Close deleted text
tag","ins":"Inserted text","insClose":"Close inserted text
tag","image":"Insert image","ul":"Bulleted list","ulClose":"Close bulleted
list tag","ol":"Numbered list","olClose":"Close numbered list
tag","li":"List item","liClose":"Close list item
tag","code":"Code","codeClose":"Close code tag","more":"Insert Read More
tag"};'); public $textdomain = NULL; public $translations_path = NULL },
'colorpicker' => class _WP_Dependency { public $handle = 'colorpicker';
public $src = '/wp-includes/js/colorpicker.js'; public $deps = array (0 =>
'prototype'); public $ver = '3517m'; public $args = NULL; public $extra =
array (); public $textdomain = NULL; public $translations_path = NULL },
'editor' => class _WP_Dependency { public $handle = 'editor'; public $src
= '/wp-admin/js/editor.js'; public $deps = array (0 => 'utils', 1 =>
'jquery'); public $ver = FALSE; public $args = 1; public $extra = array
(); public $textdomain = NULL; public $translations_path = NULL },
'clipboard' => class _WP_Dependency { public $handle = 'clipboard'; public
$src = '/wp-includes/js/clipboard.js'; public $deps = array (); public
$ver = FALSE; public $args = 1; public $extra = array (); public
$textdomain = NULL; public $translations_path = NULL }, 'wp-fullscreen-
stub' => class _WP_Dependency { public $handle = 'wp-fullscreen-stub';
public $src = '/wp-admin/js/wp-fullscreen-stub.js'; public $deps = array
(); public $ver = FALSE; public $args = 1; public $extra = array ();
public $textdomain = NULL; public $translations_path = NULL }, 'wp-ajax-
response' => class _WP_Dependency { public $handle = 'wp-ajax-response';
public $src = '/wp-includes/js/wp-ajax-response.js'; public $deps = array
(0 => 'jquery'); public $ver = FALSE; public $args = 1; public $extra =
array ('data' => 'var wpAjax = {"noPerm":"Sorry, you are not allowed to do
that.","broken":"Something went wrong."};'); public $textdomain = NULL;
public $translations_path = NULL }, 'wp-api-request' => class
_WP_Dependency { public $handle = 'wp-api-request'; public $src = '/wp-
includes/js/api-request.js'; public $deps = array (0 => 'jquery'); public
$ver = FALSE; public $args = 1; public $extra = array (); public
$textdomain = NULL; public $translations_path = NULL }); public $queue =
array (); public $to_do = array (); public $done = array (); public $args
= array (); public $groups = array (); public $group = 0 }))
/srv/www/theundefeated/public_html/wp-includes/class.wp-scripts.php:148
PHP 18. WP_Hook->do_action($args = array (0 => class WP_Scripts { public
$base_url = 'https://tu.test'; public $content_url = 'https://tu.test/wp-
content'; public $default_version = '5.2.2'; public $in_footer = array ();
public $concat = ''; public $concat_version = ''; public $do_concat =
FALSE; public $print_html = ''; public $print_code = ''; public
$ext_handles = ''; public $ext_version = ''; public $default_dirs = array
(0 => '/wp-admin/js/', 1 => '/wp-includes/js/'); public $registered =
array ('utils' => class _WP_Dependency { public $handle = 'utils'; public
$src = '/wp-includes/js/utils.js'; public $deps = array (); public $ver =
FALSE; public $args = NULL; public $extra = array ('data' => 'var
userSettings =
{"url":"\\/","uid":"0","time":"1565290287","secure":"1"};'); public
$textdomain = NULL; public $translations_path = NULL }, 'common' => class
_WP_Dependency { public $handle = 'common'; public $src = '/wp-
admin/js/common.js'; public $deps = array (0 => 'jquery', 1 =>
'hoverIntent', 2 => 'utils'); public $ver = FALSE; public $args = 1;
public $extra = array ('data' => 'var commonL10n = {"warnDelete":"You are
about to permanently delete these items from your site.\\nThis action
cannot be undone.\\n \'Cancel\' to stop, \'OK\' to
delete.","dismiss":"Dismiss this notice.","collapseMenu":"Collapse Main
menu","expandMenu":"Expand Main menu"};'); public $textdomain = NULL;
public $translations_path = NULL }, 'wp-a11y' => class _WP_Dependency {
public $handle = 'wp-a11y'; public $src = '/wp-includes/js/wp-a11y.js';
public $deps = array (0 => 'jquery'); public $ver = FALSE; public $args =
1; public $extra = array (); public $textdomain = NULL; public
$translations_path = NULL }, 'sack' => class _WP_Dependency { public
$handle = 'sack'; public $src = '/wp-includes/js/tw-sack.js'; public $deps
= array (); public $ver = '1.6.1'; public $args = 1; public $extra = array
(); public $textdomain = NULL; public $translations_path = NULL },
'quicktags' => class _WP_Dependency { public $handle = 'quicktags'; public
$src = '/wp-includes/js/quicktags.js'; public $deps = array (); public
$ver = FALSE; public $args = 1; public $extra = array ('data' => 'var
quicktagsL10n = {"closeAllOpenTags":"Close all open
tags","closeTags":"close tags","enterURL":"Enter the
URL","enterImageURL":"Enter the URL of the
image","enterImageDescription":"Enter a description of the
image","textdirection":"text direction","toggleTextdirection":"Toggle
Editor Text Direction","dfw":"Distraction-free writing
mode","strong":"Bold","strongClose":"Close bold
tag","em":"Italic","emClose":"Close italic tag","link":"Insert
link","blockquote":"Blockquote","blockquoteClose":"Close blockquote
tag","del":"Deleted text (strikethrough)","delClose":"Close deleted text
tag","ins":"Inserted text","insClose":"Close inserted text
tag","image":"Insert image","ul":"Bulleted list","ulClose":"Close bulleted
list tag","ol":"Numbered list","olClose":"Close numbered list
tag","li":"List item","liClose":"Close list item
tag","code":"Code","codeClose":"Close code tag","more":"Insert Read More
tag"};'); public $textdomain = NULL; public $translations_path = NULL },
'colorpicker' => class _WP_Dependency { public $handle = 'colorpicker';
public $src = '/wp-includes/js/colorpicker.js'; public $deps = array (0 =>
'prototype'); public $ver = '3517m'; public $args = NULL; public $extra =
array (); public $textdomain = NULL; public $translations_path = NULL },
'editor' => class _WP_Dependency { public $handle = 'editor'; public $src
= '/wp-admin/js/editor.js'; public $deps = array (0 => 'utils', 1 =>
'jquery'); public $ver = FALSE; public $args = 1; public $extra = array
(); public $textdomain = NULL; public $translations_path = NULL },
'clipboard' => class _WP_Dependency { public $handle = 'clipboard'; public
$src = '/wp-includes/js/clipboard.js'; public $deps = array (); public
$ver = FALSE; public $args = 1; public $extra = array (); public
$textdomain = NULL; public $translations_path = NULL }, 'wp-fullscreen-
stub' => class _WP_Dependency { public $handle = 'wp-fullscreen-stub';
public $src = '/wp-admin/js/wp-fullscreen-stub.js'; public $deps = array
(); public $ver = FALSE; public $args = 1; public $extra = array ();
public $textdomain = NULL; public $translations_path = NULL }, 'wp-ajax-
response' => class _WP_Dependency { public $handle = 'wp-ajax-response';
public $src = '/wp-includes/js/wp-ajax-response.js'; public $deps = array
(0 => 'jquery'); public $ver = FALSE; public $args = 1; public $extra =
array ('data' => 'var wpAjax = {"noPerm":"Sorry, you are not allowed to do
that.","broken":"Something went wrong."};'); public $textdomain = NULL;
public $translations_path = NULL }, 'wp-api-request' => class
_WP_Dependency { public $handle = 'wp-api-request'; public $src = '/wp-
includes/js/api-request.js'; public $deps = array (0 => 'jquery'); public
$ver = FALSE; public $args = 1; public $extra = array (); public
$textdomain = NULL; public $translations_path = NULL }); public $queue =
array (); public $to_do = array (); public $done = array (); public $args
= array (); public $groups = array (); public $group = 0 }))
/srv/www/theundefeated/public_html/wp-includes/plugin.php:531
PHP 19. WP_Hook->apply_filters($value = '', $args = array (0 => class
WP_Scripts { public $base_url = 'https://tu.test'; public $content_url =
'https://tu.test/wp-content'; public $default_version = '5.2.2'; public
$in_footer = array (); public $concat = ''; public $concat_version = '';
public $do_concat = FALSE; public $print_html = ''; public $print_code =
''; public $ext_handles = ''; public $ext_version = ''; public
$default_dirs = array (0 => '/wp-admin/js/', 1 => '/wp-includes/js/');
public $registered = array ('utils' => class _WP_Dependency { public
$handle = 'utils'; public $src = '/wp-includes/js/utils.js'; public $deps
= array (); public $ver = FALSE; public $args = NULL; public $extra =
array ('data' => 'var userSettings =
{"url":"\\/","uid":"0","time":"1565290287","secure":"1"};'); public
$textdomain = NULL; public $translations_path = NULL }, 'common' => class
_WP_Dependency { public $handle = 'common'; public $src = '/wp-
admin/js/common.js'; public $deps = array (0 => 'jquery', 1 =>
'hoverIntent', 2 => 'utils'); public $ver = FALSE; public $args = 1;
public $extra = array ('data' => 'var commonL10n = {"warnDelete":"You are
about to permanently delete these items from your site.\\nThis action
cannot be undone.\\n \'Cancel\' to stop, \'OK\' to
delete.","dismiss":"Dismiss this notice.","collapseMenu":"Collapse Main
menu","expandMenu":"Expand Main menu"};'); public $textdomain = NULL;
public $translations_path = NULL }, 'wp-a11y' => class _WP_Dependency {
public $handle = 'wp-a11y'; public $src = '/wp-includes/js/wp-a11y.js';
public $deps = array (0 => 'jquery'); public $ver = FALSE; public $args =
1; public $extra = array (); public $textdomain = NULL; public
$translations_path = NULL }, 'sack' => class _WP_Dependency { public
$handle = 'sack'; public $src = '/wp-includes/js/tw-sack.js'; public $deps
= array (); public $ver = '1.6.1'; public $args = 1; public $extra = array
(); public $textdomain = NULL; public $translations_path = NULL },
'quicktags' => class _WP_Dependency { public $handle = 'quicktags'; public
$src = '/wp-includes/js/quicktags.js'; public $deps = array (); public
$ver = FALSE; public $args = 1; public $extra = array ('data' => 'var
quicktagsL10n = {"closeAllOpenTags":"Close all open
tags","closeTags":"close tags","enterURL":"Enter the
URL","enterImageURL":"Enter the URL of the
image","enterImageDescription":"Enter a description of the
image","textdirection":"text direction","toggleTextdirection":"Toggle
Editor Text Direction","dfw":"Distraction-free writing
mode","strong":"Bold","strongClose":"Close bold
tag","em":"Italic","emClose":"Close italic tag","link":"Insert
link","blockquote":"Blockquote","blockquoteClose":"Close blockquote
tag","del":"Deleted text (strikethrough)","delClose":"Close deleted text
tag","ins":"Inserted text","insClose":"Close inserted text
tag","image":"Insert image","ul":"Bulleted list","ulClose":"Close bulleted
list tag","ol":"Numbered list","olClose":"Close numbered list
tag","li":"List item","liClose":"Close list item
tag","code":"Code","codeClose":"Close code tag","more":"Insert Read More
tag"};'); public $textdomain = NULL; public $translations_path = NULL },
'colorpicker' => class _WP_Dependency { public $handle = 'colorpicker';
public $src = '/wp-includes/js/colorpicker.js'; public $deps = array (0 =>
'prototype'); public $ver = '3517m'; public $args = NULL; public $extra =
array (); public $textdomain = NULL; public $translations_path = NULL },
'editor' => class _WP_Dependency { public $handle = 'editor'; public $src
= '/wp-admin/js/editor.js'; public $deps = array (0 => 'utils', 1 =>
'jquery'); public $ver = FALSE; public $args = 1; public $extra = array
(); public $textdomain = NULL; public $translations_path = NULL },
'clipboard' => class _WP_Dependency { public $handle = 'clipboard'; public
$src = '/wp-includes/js/clipboard.js'; public $deps = array (); public
$ver = FALSE; public $args = 1; public $extra = array (); public
$textdomain = NULL; public $translations_path = NULL }, 'wp-fullscreen-
stub' => class _WP_Dependency { public $handle = 'wp-fullscreen-stub';
public $src = '/wp-admin/js/wp-fullscreen-stub.js'; public $deps = array
(); public $ver = FALSE; public $args = 1; public $extra = array ();
public $textdomain = NULL; public $translations_path = NULL }, 'wp-ajax-
response' => class _WP_Dependency { public $handle = 'wp-ajax-response';
public $src = '/wp-includes/js/wp-ajax-response.js'; public $deps = array
(0 => 'jquery'); public $ver = FALSE; public $args = 1; public $extra =
array ('data' => 'var wpAjax = {"noPerm":"Sorry, you are not allowed to do
that.","broken":"Something went wrong."};'); public $textdomain = NULL;
public $translations_path = NULL }, 'wp-api-request' => class
_WP_Dependency { public $handle = 'wp-api-request'; public $src = '/wp-
includes/js/api-request.js'; public $deps = array (0 => 'jquery'); public
$ver = FALSE; public $args = 1; public $extra = array (); public
$textdomain = NULL; public $translations_path = NULL }); public $queue =
array (); public $to_do = array (); public $done = array (); public $args
= array (); public $groups = array (); public $group = 0 }))
/srv/www/theundefeated/public_html/wp-includes/class-wp-hook.php:310
PHP 20. wp_default_scripts($scripts = class WP_Scripts { public $base_url
= 'https://tu.test'; public $content_url = 'https://tu.test/wp-content';
public $default_version = '5.2.2'; public $in_footer = array (); public
$concat = ''; public $concat_version = ''; public $do_concat = FALSE;
public $print_html = ''; public $print_code = ''; public $ext_handles =
''; public $ext_version = ''; public $default_dirs = array (0 => '/wp-
admin/js/', 1 => '/wp-includes/js/'); public $registered = array ('utils'
=> class _WP_Dependency { public $handle = 'utils'; public $src = '/wp-
includes/js/utils.js'; public $deps = array (); public $ver = FALSE;
public $args = NULL; public $extra = array ('data' => 'var userSettings =
{"url":"\\/","uid":"0","time":"1565290287","secure":"1"};'); public
$textdomain = NULL; public $translations_path = NULL }, 'common' => class
_WP_Dependency { public $handle = 'common'; public $src = '/wp-
admin/js/common.js'; public $deps = array (0 => 'jquery', 1 =>
'hoverIntent', 2 => 'utils'); public $ver = FALSE; public $args = 1;
public $extra = array ('data' => 'var commonL10n = {"warnDelete":"You are
about to permanently delete these items from your site.\\nThis action
cannot be undone.\\n \'Cancel\' to stop, \'OK\' to
delete.","dismiss":"Dismiss this notice.","collapseMenu":"Collapse Main
menu","expandMenu":"Expand Main menu"};'); public $textdomain = NULL;
public $translations_path = NULL }, 'wp-a11y' => class _WP_Dependency {
public $handle = 'wp-a11y'; public $src = '/wp-includes/js/wp-a11y.js';
public $deps = array (0 => 'jquery'); public $ver = FALSE; public $args =
1; public $extra = array (); public $textdomain = NULL; public
$translations_path = NULL }, 'sack' => class _WP_Dependency { public
$handle = 'sack'; public $src = '/wp-includes/js/tw-sack.js'; public $deps
= array (); public $ver = '1.6.1'; public $args = 1; public $extra = array
(); public $textdomain = NULL; public $translations_path = NULL },
'quicktags' => class _WP_Dependency { public $handle = 'quicktags'; public
$src = '/wp-includes/js/quicktags.js'; public $deps = array (); public
$ver = FALSE; public $args = 1; public $extra = array ('data' => 'var
quicktagsL10n = {"closeAllOpenTags":"Close all open
tags","closeTags":"close tags","enterURL":"Enter the
URL","enterImageURL":"Enter the URL of the
image","enterImageDescription":"Enter a description of the
image","textdirection":"text direction","toggleTextdirection":"Toggle
Editor Text Direction","dfw":"Distraction-free writing
mode","strong":"Bold","strongClose":"Close bold
tag","em":"Italic","emClose":"Close italic tag","link":"Insert
link","blockquote":"Blockquote","blockquoteClose":"Close blockquote
tag","del":"Deleted text (strikethrough)","delClose":"Close deleted text
tag","ins":"Inserted text","insClose":"Close inserted text
tag","image":"Insert image","ul":"Bulleted list","ulClose":"Close bulleted
list tag","ol":"Numbered list","olClose":"Close numbered list
tag","li":"List item","liClose":"Close list item
tag","code":"Code","codeClose":"Close code tag","more":"Insert Read More
tag"};'); public $textdomain = NULL; public $translations_path = NULL },
'colorpicker' => class _WP_Dependency { public $handle = 'colorpicker';
public $src = '/wp-includes/js/colorpicker.js'; public $deps = array (0 =>
'prototype'); public $ver = '3517m'; public $args = NULL; public $extra =
array (); public $textdomain = NULL; public $translations_path = NULL },
'editor' => class _WP_Dependency { public $handle = 'editor'; public $src
= '/wp-admin/js/editor.js'; public $deps = array (0 => 'utils', 1 =>
'jquery'); public $ver = FALSE; public $args = 1; public $extra = array
(); public $textdomain = NULL; public $translations_path = NULL },
'clipboard' => class _WP_Dependency { public $handle = 'clipboard'; public
$src = '/wp-includes/js/clipboard.js'; public $deps = array (); public
$ver = FALSE; public $args = 1; public $extra = array (); public
$textdomain = NULL; public $translations_path = NULL }, 'wp-fullscreen-
stub' => class _WP_Dependency { public $handle = 'wp-fullscreen-stub';
public $src = '/wp-admin/js/wp-fullscreen-stub.js'; public $deps = array
(); public $ver = FALSE; public $args = 1; public $extra = array ();
public $textdomain = NULL; public $translations_path = NULL }, 'wp-ajax-
response' => class _WP_Dependency { public $handle = 'wp-ajax-response';
public $src = '/wp-includes/js/wp-ajax-response.js'; public $deps = array
(0 => 'jquery'); public $ver = FALSE; public $args = 1; public $extra =
array ('data' => 'var wpAjax = {"noPerm":"Sorry, you are not allowed to do
that.","broken":"Something went wrong."};'); public $textdomain = NULL;
public $translations_path = NULL }, 'wp-api-request' => class
_WP_Dependency { public $handle = 'wp-api-request'; public $src = '/wp-
includes/js/api-request.js'; public $deps = array (0 => 'jquery'); public
$ver = FALSE; public $args = 1; public $extra = array (); public
$textdomain = NULL; public $translations_path = NULL }); public $queue =
array (); public $to_do = array (); public $done = array (); public $args
= array (); public $groups = array (); public $group = 0 })
/srv/www/theundefeated/public_html/wp-includes/class-wp-hook.php:286
PHP 21. get_rest_url($blog_id = *uninitialized*, $path = *uninitialized*,
$scheme = *uninitialized*) /srv/www/theundefeated/public_html/wp-includes
/script-loader.php:948
}}}
Adding an `isset()` check to rest-api.php fixes this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47854>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list