Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Pass title attribute when uploading an image #8955
Fixes #8902 by passing along an image title during the upload.
How has this been tested?
Steps to test:
Types of changes
The title will be the file's name (ex
The regex for removing the extension is the same used in WP core https://github.com/WordPress/WordPress/blob/aab929b8d619bde14495a97cdc1eb7bdf1f1d487/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php#L143 and https://github.com/WordPress/WordPress/blob/acd3f4cb10675c35b7532f123bc4ddb871d35ff1/wp-admin/includes/media.php#L436