Changeset 3111885
- Timestamp:
- 07/03/2024 05:40:03 PM (21 months ago)
- Location:
- lct-useful-shortcodes-functions/trunk
- Files:
-
- 7 edited
-
available/email-reminder/includes/classes/PDER.php (modified) (3 diffs)
-
code/api/_helpers.php (modified) (2 diffs)
-
code/api/get.php (modified) (2 diffs)
-
code/features/access.php (modified) (2 diffs)
-
code/features/api/comments.php (modified) (2 diffs)
-
lct-useful-shortcodes-functions.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lct-useful-shortcodes-functions/trunk/available/email-reminder/includes/classes/PDER.php
r3086744 r3111885 243 243 * @param int $post_id 244 244 * 245 * @since 2018.26246 * @verified 2022.08.26245 * @since 2018.26 246 * @verified 2024.06.19 247 247 */ 248 248 function send_ereminder( $post_id ) … … 548 548 549 549 if ( function_exists( 'afwp_create_logged_error' ) ) { 550 $con1 = afwp_create_logged_error_condition( $ereminder->ID, 'draft', 'post_status', '!=' ); 551 $con2 = afwp_create_logged_error_condition( $ereminder->ID, false, 'post_exists', 'IS' ); 552 afwp_create_logged_error( [ $con1, $con2 ], [ 'afwp:::wp_error' => $error ] ); 550 $conditions = null; 551 afwp_create_logged_error_condition( $conditions, $ereminder->ID, 'draft', 'post_status', '!=' ); 552 afwp_create_logged_error_condition( $conditions, $ereminder->ID, null, 'post_exists', 'NOT' ); 553 afwp_create_logged_error( $conditions, null, $error ); 553 554 } else { 554 555 lct_debug_to_error_log( $error ); … … 579 580 580 581 if ( function_exists( 'afwp_create_logged_error' ) ) { 581 afwp_create_logged_error( null, [ 'afwp:::wp_error' => $error ]);582 afwp_create_logged_error( null, null, $error ); 582 583 } else { 583 584 lct_debug_to_error_log( $error ); -
lct-useful-shortcodes-functions/trunk/code/api/_helpers.php
r3095789 r3111885 3142 3142 * 3143 3143 * @since 2019.1 3144 * @verified 202 2.11.303144 * @verified 2024.06.27 3145 3145 */ 3146 3146 function lct_do_function_later() … … 3151 3151 call_user_func_array( [ $ud['class'], $ud['function'] ], $ud['args'] ); 3152 3152 } else { 3153 if ( function_exists( 'afwp_flush_cache' ) && $ud['function'] === 'xbs_calculate_totals' && ! empty( $ud['args'][0] ) ) { 3154 afwp_flush_cache( 'xbs_calculate_totals::' . $ud['args'][0] ); 3155 } 3153 3156 call_user_func_array( $ud['function'], $ud['args'] ); 3154 3157 } -
lct-useful-shortcodes-functions/trunk/code/api/get.php
r3086744 r3111885 943 943 944 944 /** 945 * Get the DateTime object of the date & time of a day in reference to today 946 * 947 * @param string $inc 948 * @param string $type 949 * @param string|null $format 950 * 951 * @return DateTime|string 952 * @date 2024.06.18 953 * @since 2024.06 954 * @verified 2024.06.18 955 */ 956 function lct_get_WP_UTC_DateTime_from_today( $inc = '+1', $type = 'day', $format = null ) 957 { 958 $DateTime = lct_DateTime(); 959 960 961 if ( $tmp = lct_get_setting( 'timezone_wp' ) ) { 962 $DateTime->setTimezone( new DateTimeZone( $tmp ) ); 963 } else { 964 $DateTime->setTimezone( new DateTimeZone( 'UTC' ) ); 965 } 966 967 968 $DateTime->modify( sprintf( '%s %s', $inc, $type ) ); 969 970 971 if ( $format ) { 972 return $DateTime->format( $format ); 973 } 974 975 return $DateTime; 976 } 977 978 979 /** 945 980 * Get the start date & time of a day in reference to today 946 981 * … … 1068 1103 if ( $error = new WP_Error( 'lct_get_DateTime_from_date', 'lct_get_DateTime_from_date() Function failed', $data ) ) { 1069 1104 if ( function_exists( 'afwp_create_logged_error' ) ) { 1070 afwp_create_logged_error( null, [ 'afwp:::wp_error' => $error ]);1105 afwp_create_logged_error( null, null, $error ); 1071 1106 } else { 1072 1107 lct_debug_to_error_log( $error ); -
lct-useful-shortcodes-functions/trunk/code/features/access.php
r2991310 r3111885 1475 1475 * 1476 1476 * @since 2017.34 1477 * @verified 202 1.02.271477 * @verified 2024.06.17 1478 1478 */ 1479 1479 function render_field_viewonly( $field ) … … 1551 1551 && isset( $parent_field[ $viewonly ] ) 1552 1552 ) { 1553 echo '<span class="lct_render_field_viewonly">'; 1553 1554 echo lct_acf_format_value( $field['value'], lct_get_field_post_id( $field ), $field ); 1555 echo '</span>'; 1554 1556 } 1555 1557 -
lct-useful-shortcodes-functions/trunk/code/features/api/comments.php
r2894473 r3111885 14 14 * @return array 15 15 * @since 5.38 16 * @verified 20 17.11.0716 * @verified 2024.06.04 17 17 */ 18 18 function lct_get_comment_meta_field_keys( $comment_ID, $exclude = [] ) … … 25 25 foreach ( $meta as $k => $v ) { 26 26 if ( strpos( $k, '_' ) === 0 ) { 27 if ( in_array( lct_un_pre_us( $k ), $exclude ) ) { 27 if ( 28 in_array( lct_un_pre_us( $k ), $exclude ) 29 || lct_is_empty( $v[0] ) 30 ) { 28 31 continue; 29 32 } -
lct-useful-shortcodes-functions/trunk/lct-useful-shortcodes-functions.php
r3095789 r3111885 4 4 * Plugin URI: https://www.simplesmithmedia.com 5 5 * Description: Shortcodes & Functions that will help make your life easier. 6 * Version: 2024.0 56 * Version: 2024.06 7 7 * Author: SimpleSmithMedia 8 8 * Author URI: https://www.simplesmithmedia.com -
lct-useful-shortcodes-functions/trunk/readme.txt
r3095789 r3111885 33 33 34 34 == Changelog == 35 = 2024.06 = 36 *Release Date - 3 July 2024* 37 38 * Added: 39 * lct_get_WP_UTC_DateTime_from_today() 40 35 41 = 2024.05 = 36 42 *Release Date - 31 May 2024*
Note: See TracChangeset
for help on using the changeset viewer.