diff --git a/plugins/custer/custer.php b/plugins/custer/custer.php index 62da05c..dfcab6e 100644 --- a/plugins/custer/custer.php +++ b/plugins/custer/custer.php @@ -4,7 +4,7 @@ Plugin Name: custer_plugin Plugin URI: Description: customize user : output infos on page, on email, and change current user id momentarly Author: hugogogo -Version: 0.1.4 +Version: 0.1.4.1 Author URI: */ diff --git a/plugins/custer/format_user_infos.php b/plugins/custer/format_user_infos.php index 6f2abd3..8c948db 100644 --- a/plugins/custer/format_user_infos.php +++ b/plugins/custer/format_user_infos.php @@ -93,7 +93,8 @@ function format_user_info($query, &$current_user, $user_id) { $timestamp = strtotime($output); } if ($timestamp !== false) { - $date = new DateTime('@' . $timestamp); + //$date = new \DateTime('@' . $timestamp); + $date = date_create('@' . $timestamp); $output = $date->format($output_date_format); } } diff --git a/plugins/custer/user_infos.php b/plugins/custer/user_infos.php index 19f81c5..620aefc 100644 --- a/plugins/custer/user_infos.php +++ b/plugins/custer/user_infos.php @@ -65,12 +65,12 @@ function output_list_front($array, $current_user, $user_id) { /* * shortcode to write user info of post author * 0 or 1 argument, usage : -* - [cipf_user_info] -> list of all availables infos -* - [cipf_user_info user_email] -> display the email -* - [cipf_user_info user_email user_login] -> display the email -* - [cipf_user_info user_email id='logged_in'] -> display the email of the connected user -* - [cipf_user_info user_email id='author'] -> display the email of the creator of the page/post -* - [cipf_user_info user_email id='logged_in' important] -> display the email of the connected user, even if surrounded by shortcode 'custer_change_id' +* - [custer_user_info] -> list of all availables infos +* - [custer_user_info user_email] -> display the email +* - [custer_user_info user_email user_login] -> display the email +* - [custer_user_info user_email id='logged_in'] -> display the email of the connected user +* - [custer_user_info user_email id='author'] -> display the email of the creator of the page/post +* - [custer_user_info user_email id='logged_in' important] -> display the email of the connected user, even if surrounded by shortcode 'custer_change_id' * important keyword has no effect if id='author' * */