mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 15:47:05 +00:00
Docs: Miscellaneous DocBlock corrections.
See #49572. git-svn-id: https://develop.svn.wordpress.org/trunk@48408 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -460,9 +460,11 @@ class WP_REST_Attachments_Controller extends WP_REST_Posts_Controller {
|
||||
);
|
||||
}
|
||||
|
||||
// If the file doesn't exist, attempt a URL fopen on the src link.
|
||||
// This can occur with certain file replication plugins.
|
||||
// Keep the original file path to get a modified name later.
|
||||
/*
|
||||
* If the file doesn't exist, attempt a URL fopen on the src link.
|
||||
* This can occur with certain file replication plugins.
|
||||
* Keep the original file path to get a modified name later.
|
||||
*/
|
||||
$image_file_to_edit = $image_file;
|
||||
if ( ! file_exists( $image_file_to_edit ) ) {
|
||||
$image_file_to_edit = _load_image_to_edit_path( $attachment_id );
|
||||
|
||||
Reference in New Issue
Block a user