We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7fd186 commit c967917Copy full SHA for c967917
php/class-delivery.php
@@ -224,8 +224,14 @@ public function filter_out_cloudinary( $content ) {
224
'video' => Api::generate_transformation_string( $video, 'video' ),
225
);
226
}
227
- $unslashed = false;
+ $unslashed = false;
228
$working_content = $content;
229
+ if ( is_string( $working_content ) && ! is_numeric( $working_content ) ) {
230
+ $maybe_encoded = json_decode( $working_content, false );
231
+ if ( ! is_null( $maybe_encoded ) ) {
232
+ $working_content = $maybe_encoded;
233
+ }
234
235
if ( String_Replace::is_iterable( $working_content ) ) {
236
$working_content = $this->plugin->components['replace']->flatten( $working_content );
237
} else {
0 commit comments