Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gatsby-source-wordpress): use image cdn for non-resizable images in html (svgs/gifs mainly) #35529

Merged
merged 11 commits into from
May 4, 2022
Merged
Prev Previous commit
Next Next commit
start adding svg test
  • Loading branch information
TylerBarnes committed Apr 27, 2022
commit 16f224fdd4d45238be78f6fa7a420831f4e0f3a5
287 changes: 237 additions & 50 deletions integration-tests/gatsby-source-wordpress/docker/seed/backup.sql

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ RUN unzip -a -d ${WP_CONTENT_DIR} /tmp/archive.zip
RUN rm -rf ${WP_CONTENT_DIR}/__MACOSX && mv ${WP_CONTENT_DIR}/gatsby-source-wordpress-test-uploads/wp-content/uploads ${UPLOADS_DIR}
RUN rm /tmp/archive.zip

COPY wp-content /tmp/wp-content
RUN cp -R /tmp/wp-content/* ${WP_CONTENT_DIR} && rm -Rf /tmp/wp-content

COPY install-plugin.sh /usr/local/bin/install-plugin
RUN chmod +x /usr/local/bin/install-plugin

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
<?php
// Plugin Name: WPGatsby Test Plugin (for tests only)

function allow_svg_upload($mimes) {
$mimes['svg'] = 'image/svg+xml';
return $mimes;
}

add_filter('upload_mimes', 'allow_svg_upload');


add_action( 'graphql_register_types', 'add_test_mutations' );

function add_test_mutations() {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.