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: media credit placeholder not saving #3433

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

jaredrethman
Copy link
Collaborator

@jaredrethman jaredrethman commented Sep 19, 2024

All Submissions:

Changes proposed in this Pull Request:

Fixes issue when saving Media Credit placeholder image. Selected image is stored in theme mods when clicking save.

How to test the changes in this Pull Request:

  1. Checkout this branch i.e. git checkout fix/media-credit-placeholder
  2. Navigate to /wp-admin/admin.php?page=newspack-site-design-wizard#/settings
  3. Scroll down to "Media Credit" section.
    Screenshot 2024-09-18 at 21 01 53
  4. Select an image from Media Library.
  5. Click "Save".
  6. Refresh browser and confirm image has been stored in theme_mods_* (replace "*" with theme name) option.
    Screenshot 2024-09-18 at 21 05 30
  7. Additional confirmation can be done by invoking the wp theme mod list WP CLI command.
    Screenshot 2024-09-18 at 21 08 08
  8. Remove image and save. Refresh browser and ensure no placeholder image is present.

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

@jaredrethman jaredrethman requested a review from a team as a code owner September 19, 2024 02:08
@jaredrethman jaredrethman added the [Status] Needs Review The issue or pull request needs to be reviewed label Sep 19, 2024
@github-actions github-actions bot added [Status] Approved The pull request has been reviewed and is ready to merge and removed [Status] Needs Review The issue or pull request needs to be reviewed labels Sep 19, 2024
@leogermani leogermani merged commit c754fc2 into trunk Sep 19, 2024
9 checks passed
@leogermani leogermani deleted the fix/media-credit-placeholder branch September 19, 2024 16:56
matticbot pushed a commit that referenced this pull request Sep 20, 2024
# [5.4.0-alpha.6](v5.4.0-alpha.5...v5.4.0-alpha.6) (2024-09-20)

### Bug Fixes

* change the current product criteria for sync ([#3416](#3416)) ([28a84bc](28a84bc))
* **esp-sync:** sync Connected Account field ([#3414](#3414)) ([61c02bc](61c02bc))
* hide My Account links if not relevant ([#3394](#3394)) ([0d039d8](0d039d8))
* **phpcs:** specify path in custom ruleset ref ([#3384](#3384)) ([b143e74](b143e74))
* prevent PHP notice while checking my-account page ([#3435](#3435)) ([146a26f](146a26f))
* **ras-sync:** deprecate redundant Signup_Page meta field ([#3439](#3439)) ([61d6de8](61d6de8))
* **reader-registration-block:** fix initial newsletter checkbox state ([1890efe](1890efe))
* replace `newspack_image_credits_placeholder` default value ([#3433](#3433)) ([c754fc2](c754fc2))
* **sync:** method name for `membership_saved` handler ([#3399](#3399)) ([2c0bf26](2c0bf26))
* **sync:** place esp sync admin features behind a constant ([#3438](#3438)) ([20a0970](20a0970))
* **sync:** remove localized number format ([#3434](#3434)) ([2243a5d](2243a5d))

### Features

* add a new action to when a ras setting is updated ([#3357](#3357)) ([35d3492](35d3492))
* **ga4:** detect gate interaction blocks ([#3408](#3408)) ([e14913c](e14913c))
* media kit page handling ([#3358](#3358)) ([4454850](4454850))
* **ras:** sync class ([#3362](#3362)) ([88acbee](88acbee))
* **ras:** unify ESP connector strategy for data events ([#3360](#3360)) ([7080864](7080864))
* **reader-activation:** ESP-related tweaks ([#3381](#3381)) ([ac68b67](ac68b67))
* remove Woo Membersip sync fields ([#3411](#3411)) ([28052e8](28052e8))
* **sync:** add ESP sync notice to RAS wizard ([#3400](#3400)) ([f9acd56](f9acd56))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 5.4.0-alpha.6 🎉

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
Labels
released on @alpha [Status] Approved The pull request has been reviewed and is ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants