WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #25236, comment 2


Ignore:
Timestamp:
09/06/2013 01:01:34 PM (7 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25236, comment 2

    initial v1  
    55Since 3.5, it's also called in `edit_post()` for an array that contains an `attachment_url` field instead: [source:tags/3.6/wp-admin/includes/post.php#L264].
    66
    7 I'd suggest checking both fields, as long as we still have both scenarios in core. Although the former one is no longer used in the new media UI, there's a [https://gist.github.com/brasofilo/4570587#file-old-upload-method-php plugin] that re-enables the old UI.
     7I'd suggest checking both fields, as long as we still have both scenarios in core. Although the former one is no longer used in the new media UI, there's a [https://gist.github.com/brasofilo/4570587 plugin] that re-enables the old UI.
    88
    99We should also replace `basename()` with `wp_basename()`, as in [22367] and [24585]. See [attachment:25236.patch].