Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Download required WP Core asset dependency files #310

Merged
merged 3 commits into from
Jan 7, 2020
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: 3 additions & 3 deletions scripts/check-diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -581,9 +581,9 @@ function install_wp {

svn export -q "$SVN_URL" "$WP_CORE_DIR"

# Add workaround for running PHPUnit tests from source by touching built files.
mkdir -p "$WP_CORE_DIR/src/wp-includes/css/dist/block-library"
touch "$WP_CORE_DIR/src/wp-includes/css/dist/block-library/style.css"
# Download `wp-includes` folder from the WordPress Core SVN repo to include built internal dependencies.
local SVN_CORE_URL=${SVN_URL/develop/core}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use the full wp-includes directory from the release repository?

https://core.svn.wordpress.org/trunk/wp-includes

That would solve both the block-library issue above and this one.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure that makes sense.

svn export -q "${SVN_CORE_URL}wp-includes" "$WP_CORE_DIR/src/wp-includes"

download https://raw.github.com/markoheijnen/wp-mysqli/master/db.php "$WP_CORE_DIR/src/wp-content/db.php"
}
Expand Down