Changeset 3235577
- Timestamp:
- 02/05/2025 05:26:56 PM (14 months ago)
- Location:
- weight-loss-tracker
- Files:
-
- 8 edited
- 1 copied
-
tags/10.20 (copied) (copied from weight-loss-tracker/trunk)
-
tags/10.20/includes/functions.php (modified) (1 diff)
-
tags/10.20/pro-features/export/functions.php (modified) (2 diffs)
-
tags/10.20/readme.txt (modified) (2 diffs)
-
tags/10.20/weight-loss-tracker.php (modified) (2 diffs)
-
trunk/includes/functions.php (modified) (1 diff)
-
trunk/pro-features/export/functions.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/weight-loss-tracker.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
weight-loss-tracker/tags/10.20/includes/functions.php
r3226656 r3235577 1453 1453 1454 1454 /** 1455 * Fetch a user's email address 1456 * @param $user_id 1457 * @return string 1458 */ 1459 function ws_ls_user_email_address( $user_id ) { 1460 1461 if ( true === empty( $user_id ) ) { 1462 return ''; 1463 } 1464 1465 if ( $cache = ws_ls_cache_user_get( $user_id, 'email-address' ) ) { 1466 return $cache; 1467 } 1468 1469 $user = get_user_by( 'id', $user_id ); 1470 $email_address = ( false === empty( $user ) ) ? $user->user_email : ''; 1471 1472 ws_ls_cache_user_set( $user_id, 'email-address', $email_address ); 1473 1474 return $email_address; 1475 } 1476 1477 /** 1455 1478 * Challenges enabled? 1456 1479 * @return bool -
weight-loss-tracker/tags/10.20/pro-features/export/functions.php
r3226656 r3235577 204 204 'user_id' => 'User ID', 205 205 'user_nicename' => 'Nicename', 206 'user_email' => 'Email Address', 206 207 'date-display' => 'Date', 207 208 'weight' => ws_ls_settings_weight_unit_readable(), … … 243 244 244 245 $data[ 'user_nicename' ] = ws_ls_user_display_name( $data[ 'user_id' ] ); 246 $data[ 'user_email' ] = ws_ls_user_email_address( $data[ 'user_id' ] ); 245 247 $data[ 'date-display' ] = ( '0000-00-00 00:00:00' !== $data[ 'weight_date' ] ) ? ws_ls_convert_ISO_date_into_locale( $data[ 'weight_date' ], 'display-date' ) : '00/00/0000'; 246 248 $has_weight = ! empty( $data['kg'] ); -
weight-loss-tracker/tags/10.20/readme.txt
r3226656 r3235577 3 3 Tags: weight,tracker,chart,history,macronutrient 4 4 Requires at least: 6.0 5 Tested up to: 6. 56 Stable tag: 10. 195 Tested up to: 6.7.1 6 Stable tag: 10.20 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 163 163 164 164 == Changelog == 165 166 = 10.20 = 167 168 * Improvement: Added "Email Address" to CSV exports. 165 169 166 170 = 10.19 = -
weight-loss-tracker/tags/10.20/weight-loss-tracker.php
r3226656 r3235577 6 6 * Plugin Name: Weight Tracker 7 7 * Description: Allow your users to track their weight, body measurements, photos and other pieces of custom data. Display in charts, tables, shortcodes and widgets. Manage their data, issue awards, email notifications, etc! Provide advanced data on Body Mass Index (BMI), Basal Metabolic Rate (BMR), Calorie intake, Harris Benedict Formula, Macronutrients Calculator and more. 8 * Version: 10. 198 * Version: 10.20 9 9 * Requires at least: 6.0 10 * Tested up to: 6. 510 * Tested up to: 6.7.1 11 11 * Requires PHP: 7.4 12 12 * Author: Ali Colville … … 18 18 */ 19 19 20 define( 'WE_LS_CURRENT_VERSION', '10. 19' );20 define( 'WE_LS_CURRENT_VERSION', '10.20' ); 21 21 define( 'WS_LS_ABSPATH', plugin_dir_path( __FILE__ ) ); 22 22 define( 'WS_LS_BASE_URL', plugin_dir_url( __FILE__ ) ); -
weight-loss-tracker/trunk/includes/functions.php
r3226656 r3235577 1453 1453 1454 1454 /** 1455 * Fetch a user's email address 1456 * @param $user_id 1457 * @return string 1458 */ 1459 function ws_ls_user_email_address( $user_id ) { 1460 1461 if ( true === empty( $user_id ) ) { 1462 return ''; 1463 } 1464 1465 if ( $cache = ws_ls_cache_user_get( $user_id, 'email-address' ) ) { 1466 return $cache; 1467 } 1468 1469 $user = get_user_by( 'id', $user_id ); 1470 $email_address = ( false === empty( $user ) ) ? $user->user_email : ''; 1471 1472 ws_ls_cache_user_set( $user_id, 'email-address', $email_address ); 1473 1474 return $email_address; 1475 } 1476 1477 /** 1455 1478 * Challenges enabled? 1456 1479 * @return bool -
weight-loss-tracker/trunk/pro-features/export/functions.php
r3226656 r3235577 204 204 'user_id' => 'User ID', 205 205 'user_nicename' => 'Nicename', 206 'user_email' => 'Email Address', 206 207 'date-display' => 'Date', 207 208 'weight' => ws_ls_settings_weight_unit_readable(), … … 243 244 244 245 $data[ 'user_nicename' ] = ws_ls_user_display_name( $data[ 'user_id' ] ); 246 $data[ 'user_email' ] = ws_ls_user_email_address( $data[ 'user_id' ] ); 245 247 $data[ 'date-display' ] = ( '0000-00-00 00:00:00' !== $data[ 'weight_date' ] ) ? ws_ls_convert_ISO_date_into_locale( $data[ 'weight_date' ], 'display-date' ) : '00/00/0000'; 246 248 $has_weight = ! empty( $data['kg'] ); -
weight-loss-tracker/trunk/readme.txt
r3226656 r3235577 3 3 Tags: weight,tracker,chart,history,macronutrient 4 4 Requires at least: 6.0 5 Tested up to: 6. 56 Stable tag: 10. 195 Tested up to: 6.7.1 6 Stable tag: 10.20 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 163 163 164 164 == Changelog == 165 166 = 10.20 = 167 168 * Improvement: Added "Email Address" to CSV exports. 165 169 166 170 = 10.19 = -
weight-loss-tracker/trunk/weight-loss-tracker.php
r3226656 r3235577 6 6 * Plugin Name: Weight Tracker 7 7 * Description: Allow your users to track their weight, body measurements, photos and other pieces of custom data. Display in charts, tables, shortcodes and widgets. Manage their data, issue awards, email notifications, etc! Provide advanced data on Body Mass Index (BMI), Basal Metabolic Rate (BMR), Calorie intake, Harris Benedict Formula, Macronutrients Calculator and more. 8 * Version: 10. 198 * Version: 10.20 9 9 * Requires at least: 6.0 10 * Tested up to: 6. 510 * Tested up to: 6.7.1 11 11 * Requires PHP: 7.4 12 12 * Author: Ali Colville … … 18 18 */ 19 19 20 define( 'WE_LS_CURRENT_VERSION', '10. 19' );20 define( 'WE_LS_CURRENT_VERSION', '10.20' ); 21 21 define( 'WS_LS_ABSPATH', plugin_dir_path( __FILE__ ) ); 22 22 define( 'WS_LS_BASE_URL', plugin_dir_url( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.