WordPress/wp-admin/includes
Gary Pendergast 0847fab645 Media: Don't backdate media uploaded to pages.
When media is uploaded to a post, the upload directory is set according to the date of the post, so that the media URLs in the post match when the post was published.

A page is a slightly different beast, pages often live for years, and are regularly updated to stay relevant. This change causes media uploaded to pages to use the upload date to determine the upload directory.

Fixes #10752.


Built from https://develop.svn.wordpress.org/trunk@41964


git-svn-id: http://core.svn.wordpress.org/trunk@41798 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-21 13:27:48 +00:00
..
admin-filters.php Security: Add a referrer policy header to the admin and login screens. 2017-10-04 18:25:46 +00:00
admin.php
ajax-actions.php Widgets: Fix previewing embeds in Text widget by allowing `parse-embed` admin ajax requests with an empty `post_ID` just as `WP_oEmbed_Controller::get_proxy_item_permissions_check()` allows. 2017-10-18 17:40:49 +00:00
bookmark.php
class-automatic-upgrader-skin.php
class-bulk-plugin-upgrader-skin.php
class-bulk-theme-upgrader-skin.php
class-bulk-upgrader-skin.php
class-core-upgrader.php I18N: Remove `<code>` tags from translatable strings in `Core_Upgrader`, `Language_Pack_Upgrader`, `Plugin_Upgrader`, `Theme_Upgrader`. 2017-10-18 17:15:47 +00:00
class-file-upload-upgrader.php
class-ftp-pure.php
class-ftp-sockets.php
class-ftp.php
class-language-pack-upgrader-skin.php
class-language-pack-upgrader.php I18N: Remove `<code>` tags from translatable strings in `Core_Upgrader`, `Language_Pack_Upgrader`, `Plugin_Upgrader`, `Theme_Upgrader`. 2017-10-18 17:15:47 +00:00
class-pclzip.php
class-plugin-installer-skin.php
class-plugin-upgrader-skin.php
class-plugin-upgrader.php I18N: Remove `<code>` tags from translatable strings in `Core_Upgrader`, `Language_Pack_Upgrader`, `Plugin_Upgrader`, `Theme_Upgrader`. 2017-10-18 17:15:47 +00:00
class-theme-installer-skin.php Customize: Eliminate use of customize-loader in core so Customizer is opened consistently in `top` window. 2017-10-09 16:04:48 +00:00
class-theme-upgrader-skin.php Customize: Eliminate use of customize-loader in core so Customizer is opened consistently in `top` window. 2017-10-09 16:04:48 +00:00
class-theme-upgrader.php I18N: Remove `<strong>` tag from a translatable string in `Theme_Upgrader::install_strings()`. 2017-10-18 17:20:48 +00:00
class-walker-category-checklist.php Docs: Standardise the format used for documenting parameters passed by reference. 2017-10-02 22:14:46 +00:00
class-walker-nav-menu-checklist.php Docs: Standardise the format used for documenting parameters passed by reference. 2017-10-02 22:14:46 +00:00
class-walker-nav-menu-edit.php Docs: Standardise the format used for documenting parameters passed by reference. 2017-10-02 22:14:46 +00:00
class-wp-ajax-upgrader-skin.php
class-wp-automatic-updater.php Docs: Add `@since` entry for `WP_Automatic_Updater::after_core_update()`, introduced in [25841]. 2017-10-18 17:48:49 +00:00
class-wp-comments-list-table.php Accessibility: List Tables: use `aria-current` for the views current link. 2017-10-02 19:44:47 +00:00
class-wp-community-events.php Standardise on performing api.WordPress.org requests over SSL when possible, falling back to non-SSL when appropriate. 2017-09-27 08:00:49 +00:00
class-wp-filesystem-base.php
class-wp-filesystem-direct.php
class-wp-filesystem-ftpext.php
class-wp-filesystem-ftpsockets.php
class-wp-filesystem-ssh2.php
class-wp-importer.php Database: Don't quote placeholders in queries going through `$wpdb->prepare()` 2017-09-28 04:32:46 +00:00
class-wp-internal-pointers.php
class-wp-links-list-table.php
class-wp-list-table-compat.php
class-wp-list-table.php
class-wp-media-list-table.php
class-wp-ms-sites-list-table.php
class-wp-ms-themes-list-table.php Accessibility: List Tables: use `aria-current` for the views current link. 2017-10-02 19:44:47 +00:00
class-wp-ms-users-list-table.php Accessibility: List Tables: use `aria-current` for the views current link. 2017-10-02 19:44:47 +00:00
class-wp-plugin-install-list-table.php Plugins: Revert unintended change from [41915]. 2017-10-18 18:01:49 +00:00
class-wp-plugins-list-table.php Plugins: Tweak the plugin icons added in [41695]. 2017-10-04 23:43:46 +00:00
class-wp-post-comments-list-table.php
class-wp-posts-list-table.php Administration: Add `.protected-post-excerpt` class to password-protected post excerpts in the posts list. 2017-10-05 02:50:46 +00:00
class-wp-screen.php Dashboard: Introduce a "Try Gutenberg" callout. 2017-10-18 10:04:47 +00:00
class-wp-site-icon.php
class-wp-terms-list-table.php Quick/Bulk Edit: Improve the inline error messages styling. 2017-10-02 21:52:52 +00:00
class-wp-theme-install-list-table.php Accessibility: List Tables: use `aria-current` for the views current link. 2017-10-02 19:44:47 +00:00
class-wp-themes-list-table.php
class-wp-upgrader-skin.php
class-wp-upgrader-skins.php
class-wp-upgrader.php Upgrades: Remove the usage of `each()` from `WP_Upgrader` for PHP 7.2 compatibility. 2017-10-11 04:24:50 +00:00
class-wp-users-list-table.php Users: Revert [41613], [41614], and [41623] as this feature needs some more work. 2017-10-04 22:17:46 +00:00
comment.php
continents-cities.php
credits.php Docs: Standardise the format used for documenting parameters passed by reference. 2017-10-02 22:14:46 +00:00
dashboard.php Dashboard: Add missing URL to "Help with testing" link in Gutenberg callout. 2017-10-18 22:41:46 +00:00
deprecated.php
edit-tag-messages.php
export.php
file.php File Editor: Add support for more than one sub-directory level. 2017-10-10 05:34:49 +00:00
image-edit.php
image.php
import.php Standardise on performing api.WordPress.org requests over SSL when possible, falling back to non-SSL when appropriate. 2017-09-27 08:00:49 +00:00
list-table.php
media.php Media: Don't backdate media uploaded to pages. 2017-10-21 13:27:48 +00:00
menu.php
meta-boxes.php I18N: Remove `<b>` tag from a translatable string in `post_submit_meta_box()`. 2017-10-18 17:31:48 +00:00
misc.php Rewrite Rules: Remove redundant `if` condition in `extract_from_markers()`. 2017-10-18 21:28:46 +00:00
ms-admin-filters.php Options, Meta APIs: Require a confirmation link in an email to be clicked when a user attempts to change the network 2017-09-27 14:17:45 +00:00
ms-deprecated.php
ms.php
nav-menu.php Menus: Pass `$recent_args` parameter to `nav_menu_items_{$post_type_name}_recent` filter. 2017-10-19 13:05:55 +00:00
network.php Network Admin: After [41923], move the second `<p>` tag to a new line for better readability. 2017-10-18 20:51:48 +00:00
noop.php
options.php
plugin-install.php Standardise on performing api.WordPress.org requests over SSL when possible, falling back to non-SSL when appropriate. 2017-09-27 08:00:49 +00:00
plugin.php Plugin Editor: Revert superseded changes to `activate_plugin()` and `plugin_sandbox_scrape()`. 2017-10-11 00:03:48 +00:00
post.php Posts, Post Types: Simplify the wording in post locking notice. 2017-10-03 15:11:48 +00:00
revision.php
schema.php Transients: Clear expired transients from the database in a daily cron task. 2017-10-21 13:22:49 +00:00
screen.php
taxonomy.php
template.php I18N: Replace hardcoded file name in a translatable string in `convert_to_screen()` with a placeholder. 2017-10-18 15:46:52 +00:00
theme-install.php
theme.php Accessibility: Improve the Theme Details modal accessibility. 2017-10-01 13:48:46 +00:00
translation-install.php
update-core.php
update.php
upgrade.php Transients: Clear expired transients from the database in a daily cron task. 2017-10-21 13:22:49 +00:00
user.php Docs: Remove `&` prefixes from parameter documentation to avoid doc parsing errors. 2017-10-02 22:03:33 +00:00
widgets.php Accessibility: Improve the sidebar toggles in the Widgets screen. 2017-09-27 16:29:44 +00:00