Skip to content

Conversation

@agibson-godaddy
Copy link
Contributor

@agibson-godaddy agibson-godaddy commented Feb 17, 2025

Summary

This adds a PageHelper class with a handy method to check if we're on the WooCommerce analytics page.

Release: #734

QA

Before merge

  • I have confirmed these changes in each supported minor WooCommerce version

@agibson-godaddy agibson-godaddy marked this pull request as ready for review February 17, 2025 13:03
Copy link
Contributor

@nmolham-godaddy nmolham-godaddy left a comment

Choose a reason for hiding this comment

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

Nice addition, what do you think about this change d0012c2? It makes sense to move the class sanity check into the getWooCommercePageController to avoid repeating that check in future methods

@agibson-godaddy
Copy link
Contributor Author

Nice addition, what do you think about this change d0012c2? It makes sense to move the class sanity check into the getWooCommercePageController to avoid repeating that check in future methods

You're right -- good call!

Copy link
Contributor

@nmolham-godaddy nmolham-godaddy left a comment

Choose a reason for hiding this comment

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

QA passed, I just took advantage of this opportunity to include ArrayHelper::get method as well, which made perfect sense in this context 7cff851...1c35f14

@nmolham-godaddy nmolham-godaddy merged commit 6fe561f into release/5.15.4 Feb 20, 2025
5 checks passed
@nmolham-godaddy nmolham-godaddy deleted the feature/page-helper branch February 20, 2025 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants