HEX
Server: nginx/1.22.0
System: Linux iZuf6jdxbygmf6cco977lcZ 5.10.84-10.4.al8.x86_64 #1 SMP Tue Apr 12 12:31:07 CST 2022 x86_64
User: root (0)
PHP: 7.4.29
Disabled: passthru,exec,system,chroot,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_restore,dl,readlink,symlink,popepassthru,stream_socket_server,fsocket,popen
Upload Files
File: /data/wwwroot/wordpress/wp-content/plugins/flamingo/admin/admin-functions.php
<?php

function flamingo_current_action() {
	if ( isset( $_REQUEST['delete_all'] )
	or isset( $_REQUEST['delete_all2'] ) ) {
		return 'delete_all';
	}

	if ( isset( $_REQUEST['action'] )
	and -1 != $_REQUEST['action'] ) {
		return $_REQUEST['action'];
	}

	if ( isset( $_REQUEST['action2'] )
	and -1 != $_REQUEST['action2'] ) {
		return $_REQUEST['action2'];
	}

	return false;
}

function flamingo_get_all_ids_in_trash( $post_type ) {
	global $wpdb;

	$q = "SELECT ID FROM $wpdb->posts WHERE post_status = 'trash'"
		. $wpdb->prepare( " AND post_type = %s", $post_type );

	return $wpdb->get_col( $q );
}