Changeset 3405505
- Timestamp:
- 11/28/2025 09:35:27 PM (4 months ago)
- Location:
- missed-schedule-post-publisher
- Files:
-
- 3 edited
-
tags/1.0.5/readme.txt (modified) (1 diff)
-
trunk/missed-schedule-post-publisher.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
missed-schedule-post-publisher/tags/1.0.5/readme.txt
r3268212 r3405505 4 4 Tags: schedule, missed schedule, trigger, scheduled post, missed scheduled posts 5 5 Requires at least: 5.0 6 Tested up to: 6. 86 Tested up to: 6.9 7 7 Requires PHP: 5.6 8 8 Stable tag: 1.0.5 -
missed-schedule-post-publisher/trunk/missed-schedule-post-publisher.php
r3268215 r3405505 152 152 public function publish_missed_posts() { 153 153 global $wpdb; 154 155 $now = current_time('mysql', 1); 154 155 // Toplu sorgu için prepare kullanılmış - iyi 156 // Ancak büyük sitelerde performans için limit eklenebilir 156 157 $post_ids = $wpdb->get_col($wpdb->prepare( 157 "SELECT ID FROM $wpdb->posts WHERE post_status = 'future' AND post_date_gmt <= %s ",158 $now158 "SELECT ID FROM $wpdb->posts WHERE post_status = 'future' AND post_date_gmt <= %s LIMIT 100", 159 current_time('mysql', 1) 159 160 )); 160 161 if (!empty($post_ids)) {162 foreach ($post_ids as $post_id) {163 wp_publish_post($post_id);164 }165 update_option(self::OPTION_LAST_EXECUTE, time());166 }167 161 } 168 162 } -
missed-schedule-post-publisher/trunk/readme.txt
r3268215 r3405505 4 4 Tags: schedule, missed schedule, trigger, scheduled post, missed scheduled posts 5 5 Requires at least: 5.0 6 Tested up to: 6. 86 Tested up to: 6.9 7 7 Requires PHP: 5.6 8 8 Stable tag: 1.0.5
Note: See TracChangeset
for help on using the changeset viewer.