mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-06 11:10:43 +08:00
parent
acdfa23a81
commit
584d90bc3c
6 changed files with 20 additions and 20 deletions
|
@ -1343,7 +1343,7 @@ class MainWP_Helper {
|
|||
|
||||
public static function get_revisions( $max_revisions ) {
|
||||
global $wpdb;
|
||||
return $wpdb->get_results( $wpdb->prepare( " SELECT `post_parent`, COUNT(*) cnt FROM $wpdb->posts WHERE `post_type` = 'revision' GROUP BY `post_parent` HAVING COUNT(*) > %d " , $max_revisions ) );
|
||||
return $wpdb->get_results( $wpdb->prepare( " SELECT `post_parent`, COUNT(*) cnt FROM $wpdb->posts WHERE `post_type` = 'revision' GROUP BY `post_parent` HAVING COUNT(*) > %d ", $max_revisions ) );
|
||||
}
|
||||
|
||||
public static function delete_revisions( $results, $max_revisions ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue