Skip to content

Commit b1276ff

Browse files
chore: removed redundant code
1 parent b3ada65 commit b1276ff

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

inc/compatibilities/jetpack.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ public function register() {
2727
add_filter(
2828
'jetpack_sync_before_send_jetpack_published_post',
2929
function ( $data ) {
30-
Optml_Url_Replacer::instance()->init();
31-
3230
if ( is_array( $data ) ) {
3331
foreach ( $data as $key => &$value ) {
3432
if ( $value instanceof \WP_Post ) {
@@ -43,8 +41,6 @@ function ( $data ) {
4341
if ( isset( $value->featured_image ) && ! empty( $value->featured_image ) ) {
4442
$value->featured_image = apply_filters( 'optml_content_url', $value->featured_image );
4543
}
46-
47-
$data[ $key ] = $value;
4844
}
4945
}
5046
}

0 commit comments

Comments
 (0)