Skip to content

Fix wp_unique_filename() for converted images#1581

Closed
azaozz wants to merge 45 commits intoWordPress:masterfrom
azaozz:Fix-wp_unique_filename-for-converted-images
Closed

Fix wp_unique_filename() for converted images#1581
azaozz wants to merge 45 commits intoWordPress:masterfrom
azaozz:Fix-wp_unique_filename-for-converted-images

Conversation

@azaozz
Copy link
Copy Markdown
Contributor

@azaozz azaozz commented Aug 13, 2021

Alt patch for https://core.trac.wordpress.org/ticket/53668 partially based on https://core.trac.wordpress.org/attachment/ticket/53668/53668.2.diff.

Extends wp_unique_filename() to account for image files that will be converted after uploading. The file names with both the existing and expected extensions are checked against existing files.

Trac ticket: https://core.trac.wordpress.org/ticket/53668.


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

whyisjake and others added 30 commits May 18, 2020 12:02
- Remove `wp-autoupdates` from tranlsated strings.
- Shorten some var names.
- Use `add_query_arg()` for some URLs in the list tables.
- Shorten couple of very long printf() HTML strings.
@azaozz azaozz closed this Aug 16, 2021
@azaozz azaozz deleted the Fix-wp_unique_filename-for-converted-images branch August 16, 2021 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants