- Added
zaopdf_should_load_viewer
filter to allow overriding if/when the viewer loads. - Added
zaopdf_viewer_url
filter to allow overriding the default viewer URL.
- Added
zaopdf_file_url
filter to allow modifying the PDF file url for the iframe. - Call
set_url_scheme()
on the PDF url afterwp_get_attachment_url
to compensate for bad wpengine url output buffer filtering. - Do not encode URLS entered through shortcode UI (shortcake).
- Added
'zaopdf_allowed_origins'
filter - Filters the allowed domain origins for PDF hosts. Default isarray( 'null', 'http://mozilla.github.io', 'https://mozilla.github.io', )
, but can be filtered to include additional domains which have the proper CORS settings on the server. See the CORS/XHR FAQ entry on the PDF.js wiki for more info.
- Initial Release