Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Line 55
- $sql = "SELECT ID
- FROM %s AS p
- LEFT JOIN %s AS r
- ON r.object_id = p.ID
- LEFT JOIN %s AS t
- ON t.term_taxonomy_id = r.term_taxonomy_id
- AND t.taxonomy = 'category'
- WHERE t.term_id IN (%s)";
- $res = $wpdb->get_results($wpdb->prepare($sql, $tposts, $trel, $ttax, $e_cats));
- Line 70
- $sql = "UPDATE %s
- SET post_status = 'publish'
- WHERE post_status = 'future'
- AND id NOT IN (%s)";
- $wpdb->query($wpdb->prepare($sql, $tposts, $e_posts));
- Line 77
- $sql = "UPDATE %s
- SET post_status = 'future'
- WHERE id IN (%s)
- AND post_date > now()";
- $wpdb->query($wpdb->prepare($sql, $tposts, $e_posts));
- Line 123
- $sql = "UPDATE %s
- SET post_status = 'future'
- WHERE post_date > now()";
- $wpdb->query($wpdb->prepare($sql, $wpdb->posts));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement