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

Fixing error checking #310

Merged
merged 1 commit into from
Apr 13, 2023
Merged

Conversation

matiasbenedetto
Copy link
Contributor

@matiasbenedetto matiasbenedetto commented Apr 11, 2023

In the function add_media_to_local, we checked for an error to try to write the asset when we should check the opposite.

The problem was introduced in this recent PR: #305

Fixes #309

Copy link
Contributor

@jffng jffng left a comment

Choose a reason for hiding this comment

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

Here's what I did to test:

  • Added image to header
  • Used the "Overwrite" option
  • Verified that the image was written and appeared as expected

Approving since it fixes that issue. Though the original wp forum report suggested that it wasn't working on "Clone" — I tried on Clone and that options seems to work correctly (writes the asset) with and without this fix.

@matiasbenedetto matiasbenedetto merged commit c867398 into trunk Apr 13, 2023
@matiasbenedetto matiasbenedetto deleted the fix/local-image-bundling-boolean-error branch April 13, 2023 15:58
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.

The media bundling functionality is not creating the assets when running overwrite theme option
2 participants