program
php_tag "<?php"
comment "/**\n * Filesystem API: Top-level functionality\n *\n * Functio"...
comment "/** The descriptions for theme files. */"
expression_statement (+749 nodes collapsed)
comment "/**\n * Gets the description for standard WordPress theme fil"...
function_definition (+252 nodes collapsed)
comment "/**\n * Gets the absolute filesystem path to the root of the "...
function_definition (+268 nodes collapsed)
comment "/**\n * Returns a listing of all files in the specified folde"...
function_definition (+421 nodes collapsed)
comment "/**\n * Gets the list of file extensions that are editable in"...
function_definition (+260 nodes collapsed)
comment "/**\n * Gets the list of file extensions that are editable fo"...
function_definition (+274 nodes collapsed)
comment "/**\n * Prints file editor templates (for plugins and themes)"...
function_definition (+116 nodes collapsed)
comment "/**\n * Attempts to edit a file for a theme or plugin.\n *\n * "...
function_definition (+2905 nodes collapsed)
comment "/**\n * Returns a filename of a temporary unique file.\n *\n * "...
function_definition (+454 nodes collapsed)
comment "/**\n * Makes sure that the file that was requested to be edi"...
function_definition (+120 nodes collapsed)
comment "/**\n * Handles PHP uploads in WordPress.\n *\n * Sanitizes fil"...
function_definition (+2022 nodes collapsed)
comment "/**\n * Wrapper for _wp_handle_upload().\n *\n * Passes the {@s"...
function_definition (+80 nodes collapsed)
comment "/**\n * Wrapper for _wp_handle_upload().\n *\n * Passes the {@s"...
function_definition (+80 nodes collapsed)
comment "/**\n * Downloads a URL to a local temporary file using the W"...
function_definition (+1549 nodes collapsed)
comment "/**\n * Calculates and compares the MD5 of a file to its expe"...
function_definition (+200 nodes collapsed)
comment "/**\n * Verifies the contents of a file against its ED25519 s"...
function_definition (+969 nodes collapsed)
comment "/**\n * Retrieves the list of signing keys trusted by WordPre"...
function_definition (+71 nodes collapsed)
comment "/**\n * Determines whether the given file is a valid ZIP file"...
function_definition (+175 nodes collapsed)
comment "/**\n * Unzips a specified ZIP file to a location on the file"...
function_definition (+494 nodes collapsed)
comment "/**\n * Attempts to unzip an archive using the ZipArchive cla"...
function_definition (+1395 nodes collapsed)
comment "/**\n * Attempts to unzip an archive using the PclZip library"...
function_definition (+1051 nodes collapsed)
comment "/**\n * Copies a directory from one location to another via t"...
function_definition (+742 nodes collapsed)
comment "/**\n * Moves a directory from one location to another.\n *\n *"...
function_definition (+423 nodes collapsed)
comment "/**\n * Initializes and connects the WordPress Filesystem Abs"...
function_definition
function "function"
name "WP_Filesystem"
formal_parameters (+23 nodes collapsed)
compound_statement
{ "{"
comment "// phpcs:ignore WordPress.NamingConventions.ValidFunctionNam"...
global_declaration
global "global"
variable_name
$ "$"
name "wp_filesystem"
; ";"
expression_statement
require_once_expression
require_once "require_once"
binary_expression
name "ABSPATH"
. "."
string
' "'"
string_content "wp-admin/includes/class-wp-filesystem-base.php"
' "'"
; ";"
expression_statement (+26 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
unary_op_expression
! "!"
variable_name
$ "$"
name "method"
) ")"
compound_statement
{ "{"
return_statement
return "return"
boolean "false"
; ";"
} "}"
if_statement
if "if"
parenthesized_expression
( "("
unary_op_expression
! "!"
function_call_expression
name "class_exists"
arguments
( "("
argument
encapsed_string
" "\""
string_content "WP_Filesystem_"
variable_name
$ "$"
name "method"
" "\""
) ")"
) ")"
compound_statement
{ "{"
comment "/**\n\t\t * Filters the path for a specific filesystem method c"...
expression_statement (+42 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
unary_op_expression
! "!"
function_call_expression
name "file_exists"
arguments
( "("
argument
variable_name
$ "$"
name "abstraction_file"
) ")"
) ")"
compound_statement
{ "{"
return_statement
return "return"
; ";"
} "}"
expression_statement
require_once_expression
require_once "require_once"
variable_name
$ "$"
name "abstraction_file"
; ";"
} "}"
expression_statement
assignment_expression
variable_name
$ "$"
name "method"
= "="
encapsed_string
" "\""
string_content "WP_Filesystem_"
variable_name
$ "$"
name "method"
" "\""
; ";"
expression_statement
assignment_expression
variable_name
$ "$"
name "wp_filesystem"
= "="
object_creation_expression
new "new"
variable_name
$ "$"
name "method"
arguments
( "("
argument
variable_name
$ "$"
name "args"
) ")"
; ";"
comment "/*\n\t * Define the timeouts for the connections. Only availab"...
if_statement (+36 nodes collapsed)
if_statement (+36 nodes collapsed)
if_statement (+38 nodes collapsed)
if_statement (+24 nodes collapsed)
comment "// Set the permission constants if not already set."
if_statement (+50 nodes collapsed)
if_statement (+56 nodes collapsed)
return_statement
return "return"
boolean "true"
; ";"
} "}"
comment "/**\n * Determines which method to use for reading, writing, "...
function_definition (+616 nodes collapsed)
comment "/**\n * Displays a form to the user to request for their FTP/"...
function_definition (+3010 nodes collapsed)
comment "/**\n * Prints the filesystem credentials modal when needed.\n"...
function_definition (+116 nodes collapsed)
comment "/**\n * Attempts to clear the opcode cache for an individual "...
function_definition (+225 nodes collapsed)
comment "/**\n * Attempts to clear the opcode cache for a directory of"...
function_definition (+364 nodes collapsed)