Skip to content

Commit

Permalink
fix: media credit placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredrethman committed Sep 19, 2024
1 parent cab80c9 commit 2f1afdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/class-newspack-image-credits.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ public static function get_default_settings( $key = null ) {
'key' => 'newspack_image_credits_placeholder',
'label' => __( 'Placeholder Image', 'newspack-image-credits' ),
'type' => 'image',
'value' => null,
'value' => '',
],
[
'description' => __( 'Automatically populate image credits from EXIF or IPTC metadata when uploading new images.', 'newspack-image-credits' ),
Expand Down
2 changes: 1 addition & 1 deletion includes/wizards/class-setup-wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ public function api_update_theme_with_mods( $request ) {
continue;
}

if ( null !== $value && in_array( $key, $this->media_theme_mods ) ) {
if ( '' !== $value && in_array( $key, $this->media_theme_mods ) ) {
$value = $value['id'];
}
set_theme_mod( $key, $value );
Expand Down

0 comments on commit 2f1afdb

Please sign in to comment.