View .htaccess
# Attempt to load files from production if they're not in our local version (replace {SITE URL} with your production server) | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{REQUEST_URI} ^/wp-content/uploads/[^\/]*/.*$ | |
RewriteRule ^(.*)$ https://{SITE URL}/$1 [QSA,L] | |
</IfModule> |
View simple-autocomplete.js
/** | |
* A very simple autocomplete component | |
* | |
* This is to replace the OOTB Gutenberg Autocomplete component because it is | |
* currently broken as of v4.5.1. | |
* | |
* See Github issue: https://github.com/WordPress/gutenberg/issues/10542 | |
* | |
* Note: The options array should be an array of objects containing labels and values; i.e.: | |
* [ |
View .htaccess
# Attempt to load files from production if they're not in our local version (replace {SITE URL} with your production server) | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule (.*) http://{SITE URL}/wp-content/uploads/$1 | |
</IfModule> |