Skip to content

Commit

Permalink
fix utf8_decode deprecation - https://php.watch/versions/8.2/utf8_enc…
Browse files Browse the repository at this point in the history
  • Loading branch information
jGRUBBS committed May 6, 2024
1 parent a1a55c4 commit dcbea12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function get_seo_data( $id, $type ) {

$piece = apply_filters( 'ep_seo_meta_piece', $piece );
if ( isset( $piece['name'] ) ) {
$piece['content'] = utf8_decode($piece['content']);
$piece['content'] = mb_convert_encoding($piece['content'], 'ISO-8859-1', 'UTF-8');
$piece = apply_filters( 'ep_seo_meta_piece_' . $piece['name'], $piece );
}
array_push( $meta, $piece );
Expand Down

0 comments on commit dcbea12

Please sign in to comment.