Skip to content

Commit

Permalink
Merge branch 'development' into bugfix/2373
Browse files Browse the repository at this point in the history
  • Loading branch information
HardeepAsrani authored Oct 3, 2024
2 parents e6fb693 + cae7c91 commit ba8673b
Show file tree
Hide file tree
Showing 7 changed files with 455 additions and 147 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Build files
run: npm run analyzer
- name: Upload base stats.json
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: base
path: ./build/**/stats.json
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Build files
run: npm run analyzer
- name: Upload base stats.json
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pr
path: ./build/**/stats.json
Expand All @@ -78,12 +78,12 @@ jobs:
- name: Checkout PR
uses: actions/checkout@v2
- name: Download base stats
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: base
path: base
- name: Download PR stats
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: pr
path: pr
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
- name: Upload tests artifacts
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifact
path: ./artifacts
Expand Down
54 changes: 27 additions & 27 deletions composer.lock

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

2 changes: 1 addition & 1 deletion inc/class-blocks-animation.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public function render_welcome_notice() {
$notice_html .= '<button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>';
$notice_html .= '<div class="notice-content">';

$notice_html .= '<img class="otter-preview" src="' . esc_url( BLOCKS_ANIMATION_URL . '/assets/images/welcome-notice.png' ) . '" alt="' . esc_attr__( 'Otter Blocks preview', 'otter-blocks' ) . '"/>';
$notice_html .= '<img class="otter-preview" style="max-height: 300px;" src="' . esc_url( BLOCKS_ANIMATION_URL . '/assets/images/welcome-notice.png' ) . '" alt="' . esc_attr__( 'Otter Blocks preview', 'otter-blocks' ) . '"/>';

$notice_html .= '<div class="notice-copy">';

Expand Down
4 changes: 4 additions & 0 deletions inc/class-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ public function used_css_properties( $attr ) {
'text-transform',
'transform',
);
// Return $props if $attr is not an array, addressing a specific edge case.
if ( ! is_array( $attr ) ) {
return $props;
}

$list = array_merge( $props, $attr );

Expand Down
Loading

0 comments on commit ba8673b

Please sign in to comment.