Skip to content

Commit

Permalink
Cast string for data provided tp log message
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinkrzeminski committed Dec 21, 2024
1 parent 682c7c8 commit 62039e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions connectors/class-connector-wordpress-seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,9 @@ private function meta( $object_id, $meta_key, $meta_value ) {
sprintf(
/* translators: %1$s: a meta field title, %2$s: a post title, %3$s: a post type (e.g. "Description", "Hello World", "Post") */
__( 'Updated "%1$s" of "%2$s" %3$s', 'stream' ),
$this->escape_percentages( $field['title'] ),
$this->escape_percentages( $post->post_title ),
$this->escape_percentages( $post_type_label )
$this->escape_percentages( (string) $field['title'] ),
$this->escape_percentages( (string) $post->post_title ),
$this->escape_percentages( (string) $post_type_label )
),
array(
'meta_key' => $meta_key,
Expand Down

0 comments on commit 62039e5

Please sign in to comment.