Automattic / team51-cli

A tool for provisioning and connecting GitHub repos, Pressable WordPress sites and DeployHQ.
MIT License
12 stars 0 forks source link

Upload site icon #190

Closed fmfernandes closed 1 year ago

fmfernandes commented 1 year ago

This PR adds a new command pressable:upload-site-icon <site>.

The command first checks using WP-CLI if a site icon is set in WP and if so, downloads that and uploads it to Pressable on the website root as apple-touch-icon.png. This icon is specifically shown in iOS's Safari when adding a website to favorites or bookmarking it.

If the icon set is already a png image, the uploaded image will be the same as the one defined in WP. If it's in any other format, a conversion is done with little to no losses.