Skip to content

Commit

Permalink
fix the_time hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Fefilov committed Jan 24, 2025
1 parent 18ed71e commit 4f7fe07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/fixes-dates.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
global $wpp_settings;

if ( get_locale() === 'fa_IR' && wpp_is_active( 'persian_date' ) ) {
add_filter( 'the_time', 'wpp_fix_get_time', 10, 2 );
add_filter( 'the_time', 'wpp_fix_the_time', 10, 2 );
add_filter( 'the_date', 'wpp_fix_post_date', 10, 3 );
add_filter( 'get_the_time', 'wpp_fix_get_the_time', 10, 3 );
add_filter( 'get_the_date', 'wpp_fix_post_date', 100, 3 );
Expand Down Expand Up @@ -94,7 +94,7 @@ function wpp_fix_post_modified_time( $time, $format, $gmt ) {
*
* @return string Formatted date
*/
function wpp_fix_get_time( $time, $format = '' ) {
function wpp_fix_the_time( $time, $format = '' ) {
if ( empty( $time ) ) {
return $time;
}
Expand Down

0 comments on commit 4f7fe07

Please sign in to comment.