Problem with none-English installs (adminbar graph)
-
Hi. I would like touse this plugin however, there is a problem in graph part.
I have found the part of code that causes the problem. I think you should not use i18n functions as they may replace numeric characters to arabic/persian numeric characters which can not be used in queries on columns.php file:$dt = new DateTime(); $date = $dt->format( 'Y-m-d\TH:i:s.v' ); $year = date_i18n( 'Y', $date ); $month = date_i18n( 'm', $date ); $week = date_i18n( 'W', $date ); $day = date_i18n( 'd', $date ); $views = pvc_get_views( array( 'post_id' => $post->ID, 'post_type' => $post->post_type, 'fields' => 'date=>views', 'views_query' => array( 'year' => $year, // 'week' => $week, 'month' => $month, // 'day' => $day ) ) );
- The topic ‘Problem with none-English installs (adminbar graph)’ is closed to new replies.