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

fix: do not break wp_update_term #51

Merged
merged 1 commit into from
Jul 30, 2024
Merged

fix: do not break wp_update_term #51

merged 1 commit into from
Jul 30, 2024

Conversation

leogermani
Copy link
Contributor

@leogermani leogermani commented Jul 26, 2024

Not sure if this is easily reproduceable, because I thought we would have caught it earlier.

But that's how I reproduce it:

Just open the wp shell and run: wp_update_term( 16, 'category', ['parent' => '' ] );, where 16 is the ID of a category on your site.

What I'm seeing is the shell exiting with Error: The link you followed has expired.

Testing

Edit a tag or category, add a primary brand and save. Make sure it persists. Edit it again and mark primary category as None, make sure it persists.

Run that command on WP Shell again and confirm there are no errors

@leogermani leogermani requested a review from a team as a code owner July 26, 2024 16:58
@leogermani leogermani self-assigned this Jul 26, 2024
Copy link
Contributor

@dkoo dkoo left a comment

Choose a reason for hiding this comment

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

Confirmed the issue and the fix!

@leogermani leogermani merged commit 70c0ea4 into trunk Jul 30, 2024
5 checks passed
@leogermani leogermani deleted the fix/wp-update-term branch July 30, 2024 20:12
matticbot pushed a commit that referenced this pull request Aug 1, 2024
# [1.5.0-alpha.1](v1.4.0...v1.5.0-alpha.1) (2024-08-01)

### Bug Fixes

* do not break wp_update_term ([#51](#51)) ([70c0ea4](70c0ea4))

### Features

* **ga:** add brand as custom parameter to GA4 ([bff4df3](bff4df3))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 1.5.0-alpha.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

matticbot pushed a commit that referenced this pull request Aug 13, 2024
# [2.0.0](v1.4.0...v2.0.0) (2024-08-13)

### Bug Fixes

* do not break wp_update_term ([#51](#51)) ([70c0ea4](70c0ea4))
* update dependencies to support `@wordpress/scripts` ([#45](#45)) ([de1a172](de1a172))

### Features

* **ga:** add brand as custom parameter to GA4 ([bff4df3](bff4df3))

### BREAKING CHANGES

* Updates dependencies for compatibility with WordPress 6.6.*, but breaks JS in WordPress 6.5.* and below. If you need support for WP 6.5.*, please do not upgrade to this new major version.

* chore: refactor for newspack-scripts dependency updates

* chore: update newspack-scripts to v5.6.0-alpha.3

* chore: add .stylelintrc.js

* chore: update newspack-scripts to v5.6.0-alpha.4

* fix: add missing Prettier config files

* chore: update newspack-scripts to 5.6.0-alpha.5

* chore: update newspack-scripts to v5.6.0-alpha.7

* fix: format SCSS

* chore: update newspack-scripts to v5.6.0-alpha.8

* fix: phpcs errors

* chore: update newspack-components to v3.0.0

* fix: phpcs error

* chore: bump newspack-scripts to v5.5.2
@matticbot
Copy link
Contributor

🎉 This PR is included in version 2.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants