ProShell v2.0
Dashboard
Server Info
Server: 158.106.128.192
PHP: 8.2.33
home
planet5
public_html
bansibaba.com
wp-includes
2026-09-17 19:56:57
Editing: revisions_lib_rs.php
Cancel
Save Changes
<?php // TODO: support multiple status types function rs_get_post_revisions($post_id, $status = 'inherit', $args = array() ) { global $wpdb; $defaults = array( 'order' => 'DESC', 'orderby' => 'post_modified_gmt', 'use_memcache' => true, 'fields' => COLS_ALL_RS, 'return_flipped' => false, 'where' => '' ); $args = wp_parse_args( $args, $defaults ); extract( $args ); if ( COL_ID_RS == $fields ) { // performance opt for repeated calls by user_has_cap filter if ( $use_memcache ) { static $last_results; if ( ! isset($last_results) ) $last_results = array(); elseif ( isset($last_results[$post_id][$status]) ) return $last_results[$post_id][$status]; } $revisions = scoper_get_col("SELECT ID FROM $wpdb->posts WHERE post_type = 'revision' AND post_parent = '$post_id' AND post_status = '$status' $where"); if ( $return_flipped ) $revisions = array_fill_keys( $revisions, true ); if ( $use_memcache ) { if ( ! isset($last_results[$post_id]) ) $last_results[$post_id] = array(); $last_results[$post_id][$status] = $revisions; } } else { $order_clause = ( $order && $orderby ) ? $wpdb->prepare( "ORDER BY %s %s", $orderby, $order ) : ''; $revisions = scoper_get_results( $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE post_type = 'revision' AND post_parent = %d AND post_status = %s $order_clause", $post_id, $status ) ); } return $revisions; } ?>
Upload Files
Cancel
Upload
Create New
Cancel
Create
Change Permissions
Cancel
Save
Change Date
Cancel
Save
Rename Item
Cancel
Save
Confirm Delete
Are you sure you want to delete the selected items?
Cancel
Delete