Changeset 3340954
- Timestamp:
- 08/07/2025 11:48:43 AM (8 months ago)
- Location:
- groundhogg
- Files:
-
- 26 edited
- 1 copied
-
tags/4.2.3.2 (copied) (copied from groundhogg/trunk)
-
tags/4.2.3.2/README.txt (modified) (3 diffs)
-
tags/4.2.3.2/admin/contacts/parts/details-card.php (modified) (2 diffs)
-
tags/4.2.3.2/groundhogg.php (modified) (2 diffs)
-
tags/4.2.3.2/includes/block-registry.php (modified) (1 diff)
-
tags/4.2.3.2/includes/classes/activity.php (modified) (1 diff)
-
tags/4.2.3.2/includes/classes/event.php (modified) (1 diff)
-
tags/4.2.3.2/includes/classes/other-activity.php (modified) (1 diff)
-
tags/4.2.3.2/includes/classes/page-visit.php (modified) (1 diff)
-
tags/4.2.3.2/includes/classes/submission.php (modified) (1 diff)
-
tags/4.2.3.2/includes/filters.php (modified) (3 diffs)
-
tags/4.2.3.2/includes/form/form-v2.php (modified) (3 diffs)
-
tags/4.2.3.2/includes/functions.php (modified) (5 diffs)
-
tags/4.2.3.2/includes/utils/date-time-helper.php (modified) (3 diffs)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/admin/contacts/parts/details-card.php (modified) (2 diffs)
-
trunk/groundhogg.php (modified) (2 diffs)
-
trunk/includes/block-registry.php (modified) (1 diff)
-
trunk/includes/classes/activity.php (modified) (1 diff)
-
trunk/includes/classes/event.php (modified) (1 diff)
-
trunk/includes/classes/other-activity.php (modified) (1 diff)
-
trunk/includes/classes/page-visit.php (modified) (1 diff)
-
trunk/includes/classes/submission.php (modified) (1 diff)
-
trunk/includes/filters.php (modified) (3 diffs)
-
trunk/includes/form/form-v2.php (modified) (3 diffs)
-
trunk/includes/functions.php (modified) (5 diffs)
-
trunk/includes/utils/date-time-helper.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
groundhogg/tags/4.2.3.2/README.txt
r3336117 r3340954 1 === WordPress CRM, Email & Marketing Automation for WordPress | Award Winner — Groundhogg===1 === Groundhogg — CRM, Newsletters, and Marketing Automation === 2 2 3 3 Contributors: trainingbusinesspros, Groundhogg … … 7 7 Tested up to: 6.8 8 8 Requires PHP: 7.1 9 Stable tag: 4.2.3. 19 Stable tag: 4.2.3.2 10 10 License: GPLv3 11 11 License URI: https://www.gnu.org/licenses/gpl.md … … 354 354 355 355 == Changelog == 356 357 = 4.2.3.2 (2025-08-04) = 358 * UPDATED Repository plugin name. 359 * IMPROVED i18n for date and time. 356 360 357 361 = 4.2.3.1 (2025-07-29) = -
groundhogg/tags/4.2.3.2/admin/contacts/parts/details-card.php
r3126090 r3340954 103 103 $today = new \Groundhogg\Utils\DateTimeHelper(); 104 104 $local = new \Groundhogg\Utils\DateTimeHelper( 'now', $contact->get_time_zone( false ) ); 105 $display = $today->wpDateFormat() === $local->wpDateFormat() ? $local-> wpTimeFormat() : $local->wpDateTimeFormat();105 $display = $today->wpDateFormat() === $local->wpDateFormat() ? $local->time_i18n() : $local->i18n(); 106 106 107 107 ?><span><?php … … 114 114 title="<?php esc_attr_e( 'Date created', 'groundhogg' ); ?>"> 115 115 <?php dashicon_e( 'calendar-alt' ); ?><span><?php printf( __( 'Subscribed since %s', 'groundhogg' ), html()->e( 'abbr', [ 116 'title' => $contact->get_date_created( true )->w pDateTimeFormat()116 'title' => $contact->get_date_created( true )->wi18n() 117 117 ], $contact->get_date_created( true )->wpDateFormat() ) ); ?></span> 118 118 </div> -
groundhogg/tags/4.2.3.2/groundhogg.php
r3336117 r3340954 4 4 * Plugin URI: https://www.groundhogg.io/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash 5 5 * Description: CRM and marketing automation for WordPress 6 * Version: 4.2.3. 16 * Version: 4.2.3.2 7 7 * Author: Groundhogg Inc. 8 8 * Author URI: https://www.groundhogg.io/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash … … 25 25 } 26 26 27 define( 'GROUNDHOGG_VERSION', '4.2.3. 1' );28 define( 'GROUNDHOGG_PREVIOUS_STABLE_VERSION', '4.2. 2.2' );27 define( 'GROUNDHOGG_VERSION', '4.2.3.2' ); 28 define( 'GROUNDHOGG_PREVIOUS_STABLE_VERSION', '4.2.3.1' ); 29 29 30 30 define( 'GROUNDHOGG__FILE__', __FILE__ ); -
groundhogg/tags/4.2.3.2/includes/block-registry.php
r3336117 r3340954 290 290 291 291 $template = self::do_post_merge_tags( $content, $props ); 292 $template = do_shortcode( $template ); 292 293 $cells[] = $this->parse_blocks( $template, $context ); 293 294 endwhile; -
groundhogg/tags/4.2.3.2/includes/classes/activity.php
r3137833 r3340954 89 89 90 90 $i18n = [ 91 'diff_time' => $date-> i18n()91 'diff_time' => $date->wi18n() 92 92 ]; 93 93 -
groundhogg/tags/4.2.3.2/includes/classes/event.php
r3269993 r3340954 645 645 $diff_time = __( 'Running now...', 'groundhogg' ); 646 646 } else { 647 $diff_time = sprintf( $this->is_waiting() ? __( 'Runs %s', 'groundhogg' ) : __( 'Ran %s', 'groundhogg' ), $date-> i18n() );647 $diff_time = sprintf( $this->is_waiting() ? __( 'Runs %s', 'groundhogg' ) : __( 'Ran %s', 'groundhogg' ), $date->wi18n() ); 648 648 } 649 649 -
groundhogg/tags/4.2.3.2/includes/classes/other-activity.php
r3225663 r3340954 52 52 53 53 $i18n = [ 54 'diff_time' => $date-> i18n(),54 'diff_time' => $date->wi18n(), 55 55 'wp_date' => $date->wpDateTimeFormat(), 56 56 ]; -
groundhogg/tags/4.2.3.2/includes/classes/page-visit.php
r3083470 r3340954 80 80 81 81 $array['i18n'] = [ 82 'diff_time' => $date-> i18n()82 'diff_time' => $date->wi18n() 83 83 ]; 84 84 -
groundhogg/tags/4.2.3.2/includes/classes/submission.php
r3198996 r3340954 152 152 153 153 $array['i18n'] = [ 154 'diff_time' => ucfirst( $date-> i18n() ),154 'diff_time' => ucfirst( $date->wi18n() ), 155 155 'answers' => $this->get_answers( true ) 156 156 ]; -
groundhogg/tags/4.2.3.2/includes/filters.php
r3314835 r3340954 64 64 function do_replacements_when_rendering_blocks( $content, $parsed_block, \WP_Block $block ) { 65 65 66 if ( ! isset( $parsed_block['attrs'] ) ) { 67 return $content; 68 } 69 66 70 if ( isset_not_empty( $parsed_block['attrs'], 'ghReplacements' ) && ! empty( $content ) ) { 67 71 $content = do_replacements( $content ); … … 84 88 */ 85 89 function handle_conditional_content_block_filters( $content, $parsed_block, \WP_Block $block ) { 90 91 if ( ! isset( $parsed_block['attrs'] ) ) { 92 return $content; 93 } 86 94 87 95 // Content restriction is not enabled for this block … … 764 772 $today = new DateTimeHelper(); 765 773 $local = new DateTimeHelper( 'now', $contact->get_time_zone( false ) ); 766 $display = $today->wpDateFormat() === $local->wpDateFormat() ? $local-> wpTimeFormat() : $local->wpDateTimeFormat();774 $display = $today->wpDateFormat() === $local->wpDateFormat() ? $local->time_i18n() : $local->wpDateTimeFormat(); 767 775 768 776 $display = html()->e( 'abbr', [ 'title' => $local->wpDateTimeFormat() ], $display ); -
groundhogg/tags/4.2.3.2/includes/form/form-v2.php
r3335438 r3340954 762 762 $dateTime = new DateTimeHelper( $value ); 763 763 764 return $dateTime-> wpDateFormat();764 return $dateTime->date_i18n(); 765 765 } 766 766 ], … … 781 781 $dateTime = new DateTimeHelper( $value ); 782 782 783 return $dateTime-> wpDateTimeFormat();783 return $dateTime->i18n(); 784 784 } 785 785 ], … … 802 802 $dateTime = new DateTimeHelper( $value ); 803 803 804 return $dateTime-> wpTimeFormat();804 return $dateTime->time_i18n(); 805 805 } 806 806 ], -
groundhogg/tags/4.2.3.2/includes/functions.php
r3336117 r3340954 2662 2662 break; 2663 2663 case 'tags': 2664 2665 if ( is_string( $value ) ) { 2666 $value = explode( ',', $value ); 2667 } 2668 2669 if ( ! is_array( $value ) ) { 2670 $value = [ $value ]; 2671 } 2672 2673 $tags = array_merge( $tags, $value ); 2664 $new_tags = array_trim( maybe_explode( $value ) ); 2665 $tags = array_merge( $tags, array_values( $new_tags ) ); 2674 2666 break; 2675 2667 case 'meta': … … 4857 4849 $key = wp_generate_password( 20, false ); 4858 4850 4859 add_redaction( $key );4851 add_redaction( $key ); 4860 4852 4861 4853 // Generate the permissions_key … … 5783 5775 $original_meta_value = $meta_value; 5784 5776 5785 if ( is_string( $meta_value ) && strpos( $meta_value, PHP_EOL ) !== false ) { 5777 $property = Properties::instance()->get_field( $meta_key ); 5778 5779 if ( $property ){ 5780 $meta_value = sanitize_custom_field( $meta_value, $property ); 5781 } else if ( is_string( $meta_value ) && strpos( $meta_value, PHP_EOL ) !== false ) { 5786 5782 $meta_value = sanitize_textarea_field( $meta_value ); 5787 5783 } else if ( is_string( $meta_value ) ) { … … 8872 8868 8873 8869 // we also need to cleverly handle newlines, because "\n" can become <br/> or <p>...</p> and that will cause the exact match to not work :/ 8874 // I think a cleaver way to handle this would be to split the newlines, and simply redact each single line separately8875 $lines = array_trim( explode( PHP_EOL, $text ) );8876 foreach ( $lines as $line ){8877 redactor()->add( $line, get_redaction_replacement( $line ) );8878 }8870 // I think a cleaver way to handle this would be to split the newlines, and simply redact each single line separately 8871 $lines = array_trim( explode( PHP_EOL, $text ) ); 8872 foreach ( $lines as $line ) { 8873 redactor()->add( $line, get_redaction_replacement( $line ) ); 8874 } 8879 8875 } 8880 8876 … … 8931 8927 $id_col = $table->get_object_id_col(); 8932 8928 8933 $time = time();8929 $time = time(); 8934 8930 8935 8931 -
groundhogg/tags/4.2.3.2/includes/utils/date-time-helper.php
r3269144 r3340954 5 5 use function Groundhogg\get_date_time_format; 6 6 use function Groundhogg\get_time_format; 7 use function Groundhogg\site_locale_is_english; 7 8 8 9 class DateTimeHelper extends \DateTime { … … 89 90 } 90 91 92 /** 93 * The date in internationalized format 94 * 95 * @return string 96 */ 97 public function i18n( $format = null ) { 98 if ( is_null( $format ) ) { 99 $format = get_date_time_format(); 100 } 101 102 return date_i18n( $format, $this->getTimestamp() ); 103 } 104 105 public function time_i18n() { 106 return $this->i18n( get_option( 'time_format' ) ); 107 } 108 109 public function date_i18n() { 110 return $this->i18n( get_option( 'date_format' ) ); 111 } 112 113 /** 114 * Display the localized date 115 * 116 * @return string 117 */ 118 public function wi18n() { 119 120 if ( site_locale_is_english() ){ 121 switch ( $this->whenIs() ) { 122 case 'today': 123 return sprintf( __( 'today at %s', 'groundhogg' ), $this->format( get_time_format() ) ); 124 case 'tomorrow': 125 return sprintf( __( 'tomorrow at %s', 'groundhogg' ), $this->format( get_time_format() ) ); 126 case 'yesterday': 127 return sprintf( __( 'yesterday at %s', 'groundhogg' ), $this->format( get_time_format() ) ); 128 } 129 } 130 131 return $this->i18n(); 132 } 133 91 134 public function human_time_diff( $time = 0 ) { 92 135 … … 105 148 public function isLeapYear() { 106 149 return absint( $this->format( 'L' ) ) === 1; 107 }108 109 public function i18n() {110 111 switch ( $this->whenIs() ) {112 case 'today':113 return sprintf( __( 'today at %s', 'groundhogg' ), $this->format( get_time_format() ) );114 case 'tomorrow':115 return sprintf( __( 'tomorrow at %s', 'groundhogg' ), $this->format( get_time_format() ) );116 case 'yesterday':117 return sprintf( __( 'yesterday at %s', 'groundhogg' ), $this->format( get_time_format() ) );118 default:119 return $this->wpDateTimeFormat();120 }121 122 150 } 123 151 -
groundhogg/trunk/README.txt
r3336117 r3340954 1 === WordPress CRM, Email & Marketing Automation for WordPress | Award Winner — Groundhogg===1 === Groundhogg — CRM, Newsletters, and Marketing Automation === 2 2 3 3 Contributors: trainingbusinesspros, Groundhogg … … 7 7 Tested up to: 6.8 8 8 Requires PHP: 7.1 9 Stable tag: 4.2.3. 19 Stable tag: 4.2.3.2 10 10 License: GPLv3 11 11 License URI: https://www.gnu.org/licenses/gpl.md … … 354 354 355 355 == Changelog == 356 357 = 4.2.3.2 (2025-08-04) = 358 * UPDATED Repository plugin name. 359 * IMPROVED i18n for date and time. 356 360 357 361 = 4.2.3.1 (2025-07-29) = -
groundhogg/trunk/admin/contacts/parts/details-card.php
r3126090 r3340954 103 103 $today = new \Groundhogg\Utils\DateTimeHelper(); 104 104 $local = new \Groundhogg\Utils\DateTimeHelper( 'now', $contact->get_time_zone( false ) ); 105 $display = $today->wpDateFormat() === $local->wpDateFormat() ? $local-> wpTimeFormat() : $local->wpDateTimeFormat();105 $display = $today->wpDateFormat() === $local->wpDateFormat() ? $local->time_i18n() : $local->i18n(); 106 106 107 107 ?><span><?php … … 114 114 title="<?php esc_attr_e( 'Date created', 'groundhogg' ); ?>"> 115 115 <?php dashicon_e( 'calendar-alt' ); ?><span><?php printf( __( 'Subscribed since %s', 'groundhogg' ), html()->e( 'abbr', [ 116 'title' => $contact->get_date_created( true )->w pDateTimeFormat()116 'title' => $contact->get_date_created( true )->wi18n() 117 117 ], $contact->get_date_created( true )->wpDateFormat() ) ); ?></span> 118 118 </div> -
groundhogg/trunk/groundhogg.php
r3336117 r3340954 4 4 * Plugin URI: https://www.groundhogg.io/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash 5 5 * Description: CRM and marketing automation for WordPress 6 * Version: 4.2.3. 16 * Version: 4.2.3.2 7 7 * Author: Groundhogg Inc. 8 8 * Author URI: https://www.groundhogg.io/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash … … 25 25 } 26 26 27 define( 'GROUNDHOGG_VERSION', '4.2.3. 1' );28 define( 'GROUNDHOGG_PREVIOUS_STABLE_VERSION', '4.2. 2.2' );27 define( 'GROUNDHOGG_VERSION', '4.2.3.2' ); 28 define( 'GROUNDHOGG_PREVIOUS_STABLE_VERSION', '4.2.3.1' ); 29 29 30 30 define( 'GROUNDHOGG__FILE__', __FILE__ ); -
groundhogg/trunk/includes/block-registry.php
r3336117 r3340954 290 290 291 291 $template = self::do_post_merge_tags( $content, $props ); 292 $template = do_shortcode( $template ); 292 293 $cells[] = $this->parse_blocks( $template, $context ); 293 294 endwhile; -
groundhogg/trunk/includes/classes/activity.php
r3137833 r3340954 89 89 90 90 $i18n = [ 91 'diff_time' => $date-> i18n()91 'diff_time' => $date->wi18n() 92 92 ]; 93 93 -
groundhogg/trunk/includes/classes/event.php
r3269993 r3340954 645 645 $diff_time = __( 'Running now...', 'groundhogg' ); 646 646 } else { 647 $diff_time = sprintf( $this->is_waiting() ? __( 'Runs %s', 'groundhogg' ) : __( 'Ran %s', 'groundhogg' ), $date-> i18n() );647 $diff_time = sprintf( $this->is_waiting() ? __( 'Runs %s', 'groundhogg' ) : __( 'Ran %s', 'groundhogg' ), $date->wi18n() ); 648 648 } 649 649 -
groundhogg/trunk/includes/classes/other-activity.php
r3225663 r3340954 52 52 53 53 $i18n = [ 54 'diff_time' => $date-> i18n(),54 'diff_time' => $date->wi18n(), 55 55 'wp_date' => $date->wpDateTimeFormat(), 56 56 ]; -
groundhogg/trunk/includes/classes/page-visit.php
r3083470 r3340954 80 80 81 81 $array['i18n'] = [ 82 'diff_time' => $date-> i18n()82 'diff_time' => $date->wi18n() 83 83 ]; 84 84 -
groundhogg/trunk/includes/classes/submission.php
r3198996 r3340954 152 152 153 153 $array['i18n'] = [ 154 'diff_time' => ucfirst( $date-> i18n() ),154 'diff_time' => ucfirst( $date->wi18n() ), 155 155 'answers' => $this->get_answers( true ) 156 156 ]; -
groundhogg/trunk/includes/filters.php
r3314835 r3340954 64 64 function do_replacements_when_rendering_blocks( $content, $parsed_block, \WP_Block $block ) { 65 65 66 if ( ! isset( $parsed_block['attrs'] ) ) { 67 return $content; 68 } 69 66 70 if ( isset_not_empty( $parsed_block['attrs'], 'ghReplacements' ) && ! empty( $content ) ) { 67 71 $content = do_replacements( $content ); … … 84 88 */ 85 89 function handle_conditional_content_block_filters( $content, $parsed_block, \WP_Block $block ) { 90 91 if ( ! isset( $parsed_block['attrs'] ) ) { 92 return $content; 93 } 86 94 87 95 // Content restriction is not enabled for this block … … 764 772 $today = new DateTimeHelper(); 765 773 $local = new DateTimeHelper( 'now', $contact->get_time_zone( false ) ); 766 $display = $today->wpDateFormat() === $local->wpDateFormat() ? $local-> wpTimeFormat() : $local->wpDateTimeFormat();774 $display = $today->wpDateFormat() === $local->wpDateFormat() ? $local->time_i18n() : $local->wpDateTimeFormat(); 767 775 768 776 $display = html()->e( 'abbr', [ 'title' => $local->wpDateTimeFormat() ], $display ); -
groundhogg/trunk/includes/form/form-v2.php
r3335438 r3340954 762 762 $dateTime = new DateTimeHelper( $value ); 763 763 764 return $dateTime-> wpDateFormat();764 return $dateTime->date_i18n(); 765 765 } 766 766 ], … … 781 781 $dateTime = new DateTimeHelper( $value ); 782 782 783 return $dateTime-> wpDateTimeFormat();783 return $dateTime->i18n(); 784 784 } 785 785 ], … … 802 802 $dateTime = new DateTimeHelper( $value ); 803 803 804 return $dateTime-> wpTimeFormat();804 return $dateTime->time_i18n(); 805 805 } 806 806 ], -
groundhogg/trunk/includes/functions.php
r3336117 r3340954 2662 2662 break; 2663 2663 case 'tags': 2664 2665 if ( is_string( $value ) ) { 2666 $value = explode( ',', $value ); 2667 } 2668 2669 if ( ! is_array( $value ) ) { 2670 $value = [ $value ]; 2671 } 2672 2673 $tags = array_merge( $tags, $value ); 2664 $new_tags = array_trim( maybe_explode( $value ) ); 2665 $tags = array_merge( $tags, array_values( $new_tags ) ); 2674 2666 break; 2675 2667 case 'meta': … … 4857 4849 $key = wp_generate_password( 20, false ); 4858 4850 4859 add_redaction( $key );4851 add_redaction( $key ); 4860 4852 4861 4853 // Generate the permissions_key … … 5783 5775 $original_meta_value = $meta_value; 5784 5776 5785 if ( is_string( $meta_value ) && strpos( $meta_value, PHP_EOL ) !== false ) { 5777 $property = Properties::instance()->get_field( $meta_key ); 5778 5779 if ( $property ){ 5780 $meta_value = sanitize_custom_field( $meta_value, $property ); 5781 } else if ( is_string( $meta_value ) && strpos( $meta_value, PHP_EOL ) !== false ) { 5786 5782 $meta_value = sanitize_textarea_field( $meta_value ); 5787 5783 } else if ( is_string( $meta_value ) ) { … … 8872 8868 8873 8869 // we also need to cleverly handle newlines, because "\n" can become <br/> or <p>...</p> and that will cause the exact match to not work :/ 8874 // I think a cleaver way to handle this would be to split the newlines, and simply redact each single line separately8875 $lines = array_trim( explode( PHP_EOL, $text ) );8876 foreach ( $lines as $line ){8877 redactor()->add( $line, get_redaction_replacement( $line ) );8878 }8870 // I think a cleaver way to handle this would be to split the newlines, and simply redact each single line separately 8871 $lines = array_trim( explode( PHP_EOL, $text ) ); 8872 foreach ( $lines as $line ) { 8873 redactor()->add( $line, get_redaction_replacement( $line ) ); 8874 } 8879 8875 } 8880 8876 … … 8931 8927 $id_col = $table->get_object_id_col(); 8932 8928 8933 $time = time();8929 $time = time(); 8934 8930 8935 8931 -
groundhogg/trunk/includes/utils/date-time-helper.php
r3269144 r3340954 5 5 use function Groundhogg\get_date_time_format; 6 6 use function Groundhogg\get_time_format; 7 use function Groundhogg\site_locale_is_english; 7 8 8 9 class DateTimeHelper extends \DateTime { … … 89 90 } 90 91 92 /** 93 * The date in internationalized format 94 * 95 * @return string 96 */ 97 public function i18n( $format = null ) { 98 if ( is_null( $format ) ) { 99 $format = get_date_time_format(); 100 } 101 102 return date_i18n( $format, $this->getTimestamp() ); 103 } 104 105 public function time_i18n() { 106 return $this->i18n( get_option( 'time_format' ) ); 107 } 108 109 public function date_i18n() { 110 return $this->i18n( get_option( 'date_format' ) ); 111 } 112 113 /** 114 * Display the localized date 115 * 116 * @return string 117 */ 118 public function wi18n() { 119 120 if ( site_locale_is_english() ){ 121 switch ( $this->whenIs() ) { 122 case 'today': 123 return sprintf( __( 'today at %s', 'groundhogg' ), $this->format( get_time_format() ) ); 124 case 'tomorrow': 125 return sprintf( __( 'tomorrow at %s', 'groundhogg' ), $this->format( get_time_format() ) ); 126 case 'yesterday': 127 return sprintf( __( 'yesterday at %s', 'groundhogg' ), $this->format( get_time_format() ) ); 128 } 129 } 130 131 return $this->i18n(); 132 } 133 91 134 public function human_time_diff( $time = 0 ) { 92 135 … … 105 148 public function isLeapYear() { 106 149 return absint( $this->format( 'L' ) ) === 1; 107 }108 109 public function i18n() {110 111 switch ( $this->whenIs() ) {112 case 'today':113 return sprintf( __( 'today at %s', 'groundhogg' ), $this->format( get_time_format() ) );114 case 'tomorrow':115 return sprintf( __( 'tomorrow at %s', 'groundhogg' ), $this->format( get_time_format() ) );116 case 'yesterday':117 return sprintf( __( 'yesterday at %s', 'groundhogg' ), $this->format( get_time_format() ) );118 default:119 return $this->wpDateTimeFormat();120 }121 122 150 } 123 151
Note: See TracChangeset
for help on using the changeset viewer.