Filter hook 'https_local_ssl_verify'
in WP Core File wp-admin/includes/file.php at line 543
Description
Attempts to edit a file for a theme or plugin. When editing a PHP file, loopback requests will be made to the admin and the homepage to attempt to see if there is a fatal error introduced. If so, the PHP change will be reverted. }
Occurrences
Filename |
Line Number |
wp-admin/includes/file.php |
543 |
wp-admin/includes/class-wp-automatic-updater.php |
1759 |
wp-admin/includes/class-wp-site-health.php |
2145 |
wp-admin/includes/class-wp-site-health.php |
3121 |
wp-admin/includes/class-wp-site-health.php |
3372 |
wp-includes/cron.php |
943 |
wp-includes/class-wp-http-curl.php |
122 |
wp-includes/class-wp-http-streams.php |
113 |
Parameters
Type |
Name |
Description |
string[] |
$args |
{ Args. Note that all of the arg values are already unslashed. They are, however, coming straight from `$_POST` and are not validated or sanitized in any way. |
PHP Doc
/**
* Attempts to edit a file for a theme or plugin.
*
* When editing a PHP file, loopback requests will be made to the admin and the homepage
* to attempt to see if there is a fatal error introduced. If so, the PHP change will be
* reverted.
*
* @since 4.9.0
*
* @param string[] $args {
* Args. Note that all of the arg values are already unslashed. They are, however,
* coming straight from `$_POST` and are not validated or sanitized in any way.
*
* @type string $file Relative path to file.
* @type string $plugin Path to the plugin file relative to the plugins directory.
* @type string $theme Theme being edited.
* @type string $newcontent New content for the file.
* @type string $nonce Nonce.
* }
* @return true|WP_Error True on success or `WP_Error` on failure.
*/