Changeset 3232453
- Timestamp:
- 01/31/2025 07:39:36 AM (14 months ago)
- Location:
- taro-clockwork-post
- Files:
-
- 6 edited
- 1 copied
-
tags/1.2.6 (copied) (copied from taro-clockwork-post/trunk)
-
tags/1.2.6/includes/meta-box.php (modified) (2 diffs)
-
tags/1.2.6/readme.txt (modified) (2 diffs)
-
tags/1.2.6/taro-clockwork-post.php (modified) (1 diff)
-
trunk/includes/meta-box.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/taro-clockwork-post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
taro-clockwork-post/tags/1.2.6/includes/meta-box.php
r3111435 r3232453 17 17 $date_time = get_post_meta( $post->ID, '_tscp_expires', true ); 18 18 if ( ! $date_time ) { 19 $now = new DateTime( );20 $now->add( new DateInterval( sprintf( 'P1MT%sH', get_option( 'gmt_offset' ) )) );19 $now = new DateTime( 'now', wp_timezone() ); 20 $now->add( new DateInterval( 'P1M' ) ); 21 21 $one_month_later = $now->format( 'Y-m-d H:i:s' ); 22 22 $date_time = apply_filters( 'tspc_default_expires', $one_month_later, $post ); … … 38 38 $month_input = '<select name="tscp-month" class="tscp-month">'; 39 39 for ( $i = 1; $i <= 12; $i++ ) { 40 $month_str = mysql2date( 'M', str_replace( '-00-', sprintf( '-%02d-', $i ), date_i18n( 'Y-00-d' )) );40 $month_str = mysql2date( 'M', date_i18n( 'Y-' . sprintf( '%02d', $i ) . '-01' ) ); 41 41 // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison 42 $month_input .= sprintf( '<option value="%02d" %s>%s</option>', $i, selected( $i, $month, false ), $month_str );42 $month_input .= sprintf( '<option value="%02d" %s>%s</option>', $i, selected( $i, (int) $month, false ), $month_str ); 43 43 } 44 44 $month_input .= '</select>'; -
taro-clockwork-post/tags/1.2.6/readme.txt
r3207473 r3232453 7 7 Requires PHP: 7.2 8 8 Tested up to: 6.7 9 Stable tag: 1.2. 59 Stable tag: 1.2.6 10 10 License: GPLv3 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-3.0.txt … … 68 68 == Changelog == 69 69 70 = 1.2.6 = 71 72 * Fix month string error in Clasic editor's meta box. This happened on Any 31st day in a month. 73 70 74 = 1.2.2 = 71 75 -
taro-clockwork-post/tags/1.2.6/taro-clockwork-post.php
r3207473 r3232453 5 5 Description: You can expire post with specified date. 6 6 Author: TAROSKY INC. <mng_wpcom@tarosky.co.jp> 7 Version: 1.2. 57 Version: 1.2.6 8 8 Author URI: https://tarosky.co.jp 9 9 Text Domain: tscp -
taro-clockwork-post/trunk/includes/meta-box.php
r3111435 r3232453 17 17 $date_time = get_post_meta( $post->ID, '_tscp_expires', true ); 18 18 if ( ! $date_time ) { 19 $now = new DateTime( );20 $now->add( new DateInterval( sprintf( 'P1MT%sH', get_option( 'gmt_offset' ) )) );19 $now = new DateTime( 'now', wp_timezone() ); 20 $now->add( new DateInterval( 'P1M' ) ); 21 21 $one_month_later = $now->format( 'Y-m-d H:i:s' ); 22 22 $date_time = apply_filters( 'tspc_default_expires', $one_month_later, $post ); … … 38 38 $month_input = '<select name="tscp-month" class="tscp-month">'; 39 39 for ( $i = 1; $i <= 12; $i++ ) { 40 $month_str = mysql2date( 'M', str_replace( '-00-', sprintf( '-%02d-', $i ), date_i18n( 'Y-00-d' )) );40 $month_str = mysql2date( 'M', date_i18n( 'Y-' . sprintf( '%02d', $i ) . '-01' ) ); 41 41 // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison 42 $month_input .= sprintf( '<option value="%02d" %s>%s</option>', $i, selected( $i, $month, false ), $month_str );42 $month_input .= sprintf( '<option value="%02d" %s>%s</option>', $i, selected( $i, (int) $month, false ), $month_str ); 43 43 } 44 44 $month_input .= '</select>'; -
taro-clockwork-post/trunk/readme.txt
r3207473 r3232453 7 7 Requires PHP: 7.2 8 8 Tested up to: 6.7 9 Stable tag: 1.2. 59 Stable tag: 1.2.6 10 10 License: GPLv3 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-3.0.txt … … 68 68 == Changelog == 69 69 70 = 1.2.6 = 71 72 * Fix month string error in Clasic editor's meta box. This happened on Any 31st day in a month. 73 70 74 = 1.2.2 = 71 75 -
taro-clockwork-post/trunk/taro-clockwork-post.php
r3207473 r3232453 5 5 Description: You can expire post with specified date. 6 6 Author: TAROSKY INC. <mng_wpcom@tarosky.co.jp> 7 Version: 1.2. 57 Version: 1.2.6 8 8 Author URI: https://tarosky.co.jp 9 9 Text Domain: tscp
Note: See TracChangeset
for help on using the changeset viewer.