Skip to content

Commit 65bee7d

Browse files
committed
Use native wp func for encoding
1 parent 6d43b87 commit 65bee7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Plugin/Renamer/PluginRenamer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ private function rewrite_contents( string $contents, PluginIdentity $identity ):
179179
self::ORIGINAL_PREFIX_UPPER => strtoupper( $identity->prefix ),
180180
self::ORIGINAL_PREFIX => $identity->prefix,
181181
self::ORIGINAL_SLUG => $identity->plugin_slug,
182-
'"name": "Saltus"' => '"name": ' . json_encode( $author, JSON_UNESCAPED_UNICODE ),
182+
'"name": "Saltus"' => '"name": ' . wp_json_encode( $author, JSON_UNESCAPED_UNICODE ),
183183
'"homepage": "https://saltus.dev/"' => '"homepage": "' . esc_url_raw( $identity->author_uri ) . '"',
184184
'"homepage": "https://saltus.dev"' => '"homepage": "' . esc_url_raw( $identity->author_uri ) . '"',
185185
);

0 commit comments

Comments
 (0)