Skip to content

Commit

Permalink
Prevent sprintf errors by escaping % in post_title
Browse files Browse the repository at this point in the history
  • Loading branch information
krokodok committed May 15, 2024
1 parent 0336294 commit e3ade7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connectors/class-connector-wordpress-seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ private function meta( $object_id, $meta_key, $meta_value ) {
/* 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' ),
$field['title'],
$post->post_title,
str_replace( '%', '%%', $post->post_title ),
$post_type_label
),
array(
Expand Down

0 comments on commit e3ade7d

Please sign in to comment.