mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
s/occured/occurred/. props aldenta, fixes #15653.
git-svn-id: https://develop.svn.wordpress.org/trunk@16699 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -712,7 +712,7 @@ EOD;
|
||||
$filetype = wp_check_filetype($location);
|
||||
|
||||
if ( !isset($location) || 'attachment' != $entry['post_type'] || empty($filetype['ext']) )
|
||||
$this->internal_error(__('Error ocurred while accessing post metadata for file location.'));
|
||||
$this->internal_error(__('Error occurred while accessing post metadata for file location.'));
|
||||
|
||||
// delete file
|
||||
@unlink($location);
|
||||
@@ -749,7 +749,7 @@ EOD;
|
||||
$filetype = wp_check_filetype($location);
|
||||
|
||||
if ( !isset($location) || 'attachment' != $entry['post_type'] || empty($filetype['ext']) )
|
||||
$this->internal_error(__('Error ocurred while accessing post metadata for file location.'));
|
||||
$this->internal_error(__('Error occurred while accessing post metadata for file location.'));
|
||||
|
||||
status_header('200');
|
||||
header('Content-Type: ' . $entry['post_mime_type']);
|
||||
@@ -801,7 +801,7 @@ EOD;
|
||||
$location = "{$upload_dir['basedir']}/{$location}";
|
||||
|
||||
if (!isset($location) || 'attachment' != $entry['post_type'] || empty($filetype['ext']))
|
||||
$this->internal_error(__('Error ocurred while accessing post metadata for file location.'));
|
||||
$this->internal_error(__('Error occurred while accessing post metadata for file location.'));
|
||||
|
||||
$fp = fopen("php://input", "rb");
|
||||
$localfp = fopen($location, "w+");
|
||||
|
||||
Reference in New Issue
Block a user