/home/techb158/public_html/wp-content/plugins/kirki/includes/Ajax
NameSizeModeActions
Collaboration/-0755rm
Apps.php123350644editdlrm
Collection.php72630644editdlrm
Comments.php17220644editdlrm
DynamicContent.php262170644editdlrm
ExportImport.php219800644editdlrm
Form.php314420644editdlrm
Media.php319290644editdlrm
Page.php406210644editdlrm
PageSettings.php113030644editdlrm
RBAC.php50230644editdlrm
Symbol.php375670644editdlrm
Taxonomy.php45360644editdlrm
TemplateExportImport.php37700644editdlrm
UserData.php197030644editdlrm
Users.php71460644editdlrm
Walkthrough.php14660644editdlrm
WordpressData.php47200644editdlrm
WpAdmin.php43590644editdlrm
Edit: /home/techb158/public_html/wp-content/plugins/kirki/includes/Ajax/Collection.php (7263B)
$name, 'sorting' => $sorting, 'filters' => $filters, 'inherit' => $inherit, 'post_parent' => $post_parent, 'post_status' => 'any', 'related' => $related, 'related_post_parent' => $related_post_parent, 'item_per_page' => $item_per_page, 'current_page' => $current_page, 'offset' => $offset, 'context' => $context, 'q' => $query, ); if ( $collection_type === 'posts' ) { return HelperFunctions::get_posts( $args ); } elseif ( $collection_type === 'users' ) { return Users::get_users( $args ); } elseif ( $collection_type === 'terms' ) { $args = array( 'taxonomy' => $taxonomy, 'hide_empty' => false, 'inherit' => $inherit, 'post_parent' => $post_parent, 'item_per_page' => $item_per_page, 'current_page' => $current_page, 'offset' => $offset, ); return HelperFunctions::get_terms( $args ); } else { return apply_filters( 'kirki_collection_' . $collection_type, false, $args ); } } /** * Get batched collection data. * * @return void wpjson response */ public static function get_collection_batch() { //phpcs:ignore WordPress.Security.NonceVerification.Missing,WordPress.Security.NonceVerification.Recommended,WordPress.Security.ValidatedSanitizedInput.MissingUnslash,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized $items = HelperFunctions::sanitize_text( isset( $_POST['items'] ) ? $_POST['items'] : null ); $items = json_decode( stripslashes( $items ), true ); if ( ! is_array( $items ) ) { wp_send_json( array() ); } $results = array(); foreach ( $items as $item ) { $id = isset( $item['id'] ) ? $item['id'] : ''; $payload = isset( $item['payload'] ) ? $item['payload'] : array(); $data = self::resolve_collection( isset( $payload['collectionType'] ) ? $payload['collectionType'] : null, isset( $payload['name'] ) ? $payload['name'] : null, isset( $payload['taxonomy'] ) ? $payload['taxonomy'] : null, isset( $payload['sorting'] ) ? $payload['sorting'] : null, isset( $payload['filters'] ) ? $payload['filters'] : null, isset( $payload['inherit'] ) ? $payload['inherit'] : false, isset( $payload['related'] ) ? $payload['related'] : false, isset( $payload['post_parent'] ) ? $payload['post_parent'] : null, isset( $payload['related_post_parent'] ) ? $payload['related_post_parent'] : false, isset( $payload['items'] ) ? $payload['items'] : 3, isset( $payload['current_page'] ) ? $payload['current_page'] : 1, isset( $payload['offset'] ) ? $payload['offset'] : 0, isset( $payload['context'] ) ? $payload['context'] : null, isset( $payload['q'] ) ? $payload['q'] : '' ); $results[] = array( 'id' => $id, 'data' => $data, ); } wp_send_json( $results ); } public static function get_external_collection_options() { $collection_type = HelperFunctions::sanitize_text( isset( $_GET['collectionType'] ) ? $_GET['collectionType'] : null ); $type = HelperFunctions::sanitize_text( isset( $_GET['type'] ) ? $_GET['type'] : null ); $args = array( 'type' => $type, 'collectionType' => $collection_type, ); $collection = array(); $collection = apply_filters( 'kirki_external_collection_options', $collection, $args ); wp_send_json( $collection ); } public static function get_external_collection_item_type() { $type = HelperFunctions::sanitize_text( isset( $_GET['type'] ) ? $_GET['type'] : null ); $item_type = 'post'; $item_type = apply_filters( 'kirki_external_collection_item_type', $item_type, $type ); wp_send_json( $item_type ); } }