Changeset 3394817
- Timestamp:
- 11/13/2025 07:32:59 AM (4 months ago)
- Location:
- timed-content/trunk
- Files:
-
- 3 edited
-
lib/class-timedcontentplugin.php (modified) (8 diffs)
-
readme.txt (modified) (2 diffs)
-
timed-content.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
timed-content/trunk/lib/class-timedcontentplugin.php
r3236754 r3394817 583 583 584 584 $human_readable = (bool) $args['human_readable']; 585 $freq = $args['freq'];585 $freq = (int) $args['freq']; 586 586 $timezone = $args['timezone']; 587 587 $recurr_type = $args['recurr_type']; … … 670 670 // Adjust current date offset if start DST differs from current DST and we don't have a monthly pattern 671 671 $current_adjusted = $current; 672 if ( !$monthly_pattern) {672 if (TIMED_CONTENT_FREQ_MONTHLY !== $freq) { 673 673 $current_has_dst = $this->format_timestamp('I', $current); 674 674 if ('1' === $start_has_dst && '0' === $current_has_dst) { … … 902 902 $action = __( 'Hide the content', 'timed-content' ); 903 903 } 904 $freq = $args['freq'];904 $freq = (int)$args['freq']; 905 905 $timezone = $args['timezone']; 906 906 $recurr_type = $args['recurr_type']; … … 932 932 ); 933 933 934 if ( 0=== $freq ) {934 if ( TIMED_CONTENT_FREQ_HOURLY === $freq ) { 935 935 $desc .= '<br />' . sprintf( 936 936 /* translators: %d numerical hours value */ … … 943 943 $interval_multiplier 944 944 ); 945 } elseif ( 1=== $freq ) {945 } elseif ( TIMED_CONTENT_FREQ_DAILY === $freq ) { 946 946 $desc .= '<br />' . sprintf( 947 947 /* translators: %d numerical days value */ … … 954 954 $interval_multiplier 955 955 ); 956 } elseif ( 2=== $freq ) {956 } elseif ( TIMED_CONTENT_FREQ_WEEKLY === $freq ) { 957 957 if ( ( $days_of_week ) && ( is_array( $days_of_week ) ) ) { 958 958 $days = array(); … … 1083 1083 ); 1084 1084 } 1085 } elseif ( 3=== $freq ) {1085 } elseif ( TIMED_CONTENT_FREQ_MONTHLY === $freq ) { 1086 1086 if ( 'yes' === $monthly_pattern ) { 1087 1087 if ( 1 === $interval_multiplier ) { … … 1121 1121 ); 1122 1122 } 1123 } elseif ( 4=== $freq ) {1123 } elseif ( TIMED_CONTENT_FREQ_YEARLY === $freq ) { 1124 1124 $desc .= '<br />' . sprintf( 1125 1125 /* translators: %d: year count */ -
timed-content/trunk/readme.txt
r3283662 r3394817 5 5 Requires at least: 3.8 6 6 Tested up to: 6.8 7 Stable tag: 2.9 57 Stable tag: 2.96 8 8 License: GPL2 9 9 … … 62 62 63 63 == Changelog == 64 65 = 2.96 = 66 67 * Internal code refactoring for frequency option. 68 * Fix adjustment for DST switches to keep start/end time constant. 64 69 65 70 = 2.95 = -
timed-content/trunk/timed-content.php
r3283662 r3394817 7 7 Description: Plugin to show or hide portions of a Page or Post based on specific date/time characteristics. These actions can either be processed either server-side or client-side, depending on the desired effect. 8 8 Author: K. Tough, Arno Welzel, Enrico Bacis 9 Version: 2.9 59 Version: 2.96 10 10 Author URI: http://wordpress.org/plugins/timed-content/ 11 11 */ … … 15 15 require 'lib/class-timedcontentplugin.php'; 16 16 17 define( 'TIMED_CONTENT_VERSION', '2.9 5' );17 define( 'TIMED_CONTENT_VERSION', '2.96' ); 18 18 define( 'TIMED_CONTENT_SLUG', 'timed-content' ); 19 19 define( 'TIMED_CONTENT_PLUGIN_URL', plugins_url() . '/' . TIMED_CONTENT_SLUG );
Note: See TracChangeset
for help on using the changeset viewer.