Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CYS: fix PHP warnings and pattern button #43354

Merged
merged 5 commits into from Jan 10, 2024

Conversation

albarin
Copy link
Contributor

@albarin albarin commented Jan 8, 2024

Submission Review Guidelines:

Changes proposed in this Pull Request:

  1. Fix PHP warnings about slug key not present and $images variable not being defined.
  2. Remove styling from the Banner pattern button.

How to test the changes in this Pull Request:

Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:

  1. On a new store, which hasn't gone through the Customize your store flow, create a new page or post.
  2. Insert the Banner pattern, save, and make sure the button does not have custom styles (see screenshots below).
  3. Check the debug.log and make sure there are no PHP warnings related to slug key not being present and $images not being defined.
Before After
Screenshot 2024-01-08 at 11 51 30 Screenshot 2024-01-08 at 11 26 23

Changelog entry

  • Automatically create a changelog entry from the details below.

Significance

  • Patch
  • Minor
  • Major

Type

  • Fix - Fixes an existing bug
  • Add - Adds functionality
  • Update - Update existing functionality
  • Dev - Development related task
  • Tweak - A minor adjustment to the codebase
  • Performance - Address performance issues
  • Enhancement - Improvement to existing functionality

Message

Fix PHP warnings and remove opinionated styles from the Banner button.

Comment

@github-actions github-actions bot added the plugin: woocommerce Issues related to the WooCommerce Core plugin. label Jan 8, 2024
Copy link
Contributor

github-actions bot commented Jan 8, 2024

Test Results Summary

Commit SHA: 7965529

Test 🧪Passed ✅Failed 🚨Broken 🚧Skipped ⏭️Unknown ❔Total 📊Duration ⏱️
API Tests25900202610m 38s
E2E Tests258003026114m 41s

To view the full API test report, click here.
To view the full E2E test report, click here.
To view all test reports, visit the WooCommerce Test Reports Dashboard.

@albarin albarin marked this pull request as ready for review January 8, 2024 11:15
@woocommercebot woocommercebot requested review from a team and gigitux and removed request for a team January 8, 2024 11:15
Copy link
Contributor

github-actions bot commented Jan 8, 2024

Hi @gigitux, @nefeline,

Apart from reviewing the code changes, please make sure to review the testing instructions as well.

You can follow this guide to find out what good testing instructions should look like:
https://github.com/woocommerce/woocommerce/wiki/Writing-high-quality-testing-instructions

@albarin albarin requested a review from nefeline January 8, 2024 11:17
@albarin albarin force-pushed the fix-cys-php-warnings-and-pattern branch from b68e5ca to d0c7714 Compare January 8, 2024 13:18
Copy link
Member

@nefeline nefeline left a comment

Choose a reason for hiding this comment

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

Great work @albarin !

Insert the Banner pattern, save, and make sure the button does not have custom styles (see screenshots below).

✅ Confirmed the button doesn't have custom styles

Check the debug.log and make sure there are no PHP warnings related to slug key not being present and $images not being defined.

✅ Confirmed that there are no PHP warnings in the error log.

@albarin albarin merged commit a38c7bc into trunk Jan 10, 2024
29 checks passed
@albarin albarin deleted the fix-cys-php-warnings-and-pattern branch January 10, 2024 08:03
@github-actions github-actions bot added this to the 8.6.0 milestone Jan 10, 2024
@github-actions github-actions bot added the needs: analysis Indicates if the PR requires a PR testing scrub session. label Jan 10, 2024
@rodelgc rodelgc added needs: external testing Indicates if the PR requires further testing conducted by testers external to the development team. status: analysis complete Indicates if a PR has been analysed by Solaris and removed needs: analysis Indicates if the PR requires a PR testing scrub session. labels Jan 10, 2024
@nigeljamesstevenson nigeljamesstevenson modified the milestones: 8.6.0, 8.5.0 Jan 25, 2024
github-actions bot pushed a commit that referenced this pull request Jan 25, 2024
* Remove custom styles from button

* Avoid php warning about images and slug not defined

* Add changefile(s) from automation for the following project(s): woocommerce

* Add changefile(s) from automation for the following project(s): woocommerce

* Fix linting errors

---------

Co-authored-by: github-actions <github-actions@github.com>
nigeljamesstevenson pushed a commit that referenced this pull request Jan 25, 2024
* CYS: fix PHP warnings and pattern button (#43354)

* Remove custom styles from button

* Avoid php warning about images and slug not defined

* Add changefile(s) from automation for the following project(s): woocommerce

* Add changefile(s) from automation for the following project(s): woocommerce

* Fix linting errors

---------

Co-authored-by: github-actions <github-actions@github.com>

* Prep for cherry pick 43354

---------

Co-authored-by: Alba Rincón <albarin@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: WooCommerce Bot <no-reply@woo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: external testing Indicates if the PR requires further testing conducted by testers external to the development team. plugin: woocommerce Issues related to the WooCommerce Core plugin. status: analysis complete Indicates if a PR has been analysed by Solaris
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants