Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions php/WP_CLI/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -1247,6 +1247,12 @@ public function load_wordpress() {
// Load all the admin APIs, for convenience
require ABSPATH . 'wp-admin/includes/admin.php';

// Maybe load template functions, as they might be needed by starter
// content.
if ( ! function_exists( 'get_theme_file_uri' ) ) {
require_once ABSPATH . 'wp-includes/link-template.php';
}

add_filter(
'filesystem_method',
function() {
Expand Down