Skip to content

Commit

Permalink
Update wp-dev-lib package (#4029)
Browse files Browse the repository at this point in the history
* Update wp-dev-lib package to fix Travis errors

See: xwp/wp-dev-lib#310

* Update composer.lock

* Make phpcs happy

* Revert "Pull the built `block-libray` package from Gutenberg SVN if it does not exists (#3847)"

This reverts commit 12c1d47

* Revert update of indirect packages

* Update wp-dev-lib to 1.3.2
  • Loading branch information
pierlon authored and westonruter committed Jan 8, 2020
1 parent 833fbf5 commit 79e9d75
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 41 deletions.
5 changes: 0 additions & 5 deletions .dev-lib
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ function after_wp_install {
echo -n "Installing Gutenberg..."
gutenberg_plugin_svn_url=https://plugins.svn.wordpress.org/gutenberg/trunk/
svn export -q "$gutenberg_plugin_svn_url" "$WP_CORE_DIR/src/wp-content/plugins/gutenberg"

if [ ! -s "$WP_CORE_DIR/src/wp-includes/css/dist/block-library/style.css" ]; then
svn export -q --force https://plugins.svn.wordpress.org/gutenberg/trunk/build/block-library/ "$WP_CORE_DIR/src/wp-includes/css/dist/block-library"
fi

echo "done"
fi

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"sirbrillig/phpcs-variable-analysis": "2.6.2",
"wp-cli/wp-cli": "2.4.0",
"wp-coding-standards/wpcs": "2.2.0",
"xwp/wp-dev-lib": "1.3.0"
"xwp/wp-dev-lib": "1.3.2"
},
"suggest": {
"ext-intl": "Enables use of idn_to_utf8() to convert punycode domains to UTF-8 for use with an AMP Cache.",
Expand Down
46 changes: 16 additions & 30 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions tests/php/test-class-amp-imgur-embed-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ static function( $pre, $r, $url ) {
return $pre;
}
return [
'body' => '{"version":"1.0","type":"rich","provider_name":"Imgur","provider_url":"https:\\/\\/imgur.com","width":500,"height":750,"html":"<blockquote class=\\"imgur-embed-pub\\" lang=\\"en\\" data-id=\\"f462IUj\\"><a href=\\"https:\\/\\/imgur.com\\/f462IUj\\">Getting that beach body ready<\\/a><\\/blockquote><script async src=\\"\\/\\/s.imgur.com\\/min\\/embed.js\\" charset=\\"utf-8\\"><\\/script>"}', // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedScript, WordPress.Arrays.ArrayDeclarationSpacing.ArrayItemNoNewLine
'response' => [
'code' => 200,
'message' => 'OK',
],
'body' => '{"version":"1.0","type":"rich","provider_name":"Imgur","provider_url":"https:\\/\\/imgur.com","width":500,"height":750,"html":"<blockquote class=\\"imgur-embed-pub\\" lang=\\"en\\" data-id=\\"f462IUj\\"><a href=\\"https:\\/\\/imgur.com\\/f462IUj\\">Getting that beach body ready<\\/a><\\/blockquote><script async src=\\"\\/\\/s.imgur.com\\/min\\/embed.js\\" charset=\\"utf-8\\"><\\/script>"}', // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedScript, WordPress.Arrays.ArrayDeclarationSpacing.ArrayItemNoNewLine
'response' => [
'code' => 200,
'message' => 'OK',
],
];
},
10,
Expand Down

0 comments on commit 79e9d75

Please sign in to comment.