diff --git a/wordpress/wp-config.php b/wordpress/wp-config.php index 4c1b8295fa2096766ed243ef6eccbf23ecbaa745..711fe5aa19011376cc1be2ec66287d1bfa9b7473 100644 --- a/wordpress/wp-config.php +++ b/wordpress/wp-config.php @@ -46,9 +46,9 @@ define('DB_COLLATE', ''); define('WP_ENV', $_SERVER['WP_ENV']); // S3 Keys -define( 'AWS_ACCESS_KEY_ID', 'S3_ACCESS_KEY' ); +define( 'AWS_ACCESS_KEY_ID', $_SERVER['S3_ACCESS_KEY']); -define( 'AWS_SECRET_ACCESS_KEY', 'S3_SECRET_KEY' ); +define( 'AWS_SECRET_ACCESS_KEY', $_SERVER['S3_SECRET_KEY']); if (WP_ENV == 'local'){ define('WP_HOME','http://blocpower:8888'); diff --git a/wordpress/wp-content/themes/backer/content-ignition_product.php b/wordpress/wp-content/themes/backer/content-ignition_product.php index 279433a7b49b1ac4f86b97baecaca473f220fcea..b7bb95ae213c80422ce60885ec974bb5830d480e 100644 --- a/wordpress/wp-content/themes/backer/content-ignition_product.php +++ b/wordpress/wp-content/themes/backer/content-ignition_product.php @@ -21,7 +21,7 @@ $image = aq_resize( wp_get_attachment_url( get_post_thumbnail_id(), 'full' ), $retina === 'true' ? 510 : 255, null, false, false ); $img_obj = '
' . get_the_title() . '
'; } else if ( get_post_meta( $post->ID, 'ign_product_image1', true ) != '' ) { - $image = aq_resize( get_post_meta( $post->ID, 'ign_product_image1', true ), $retina === 'true' ? 510 : 255, null, false, false ); + $image = aq_resize( get_post_meta( $post->ID, 'ign_product_image2', true ), $retina === 'true' ? 510 : 255, null, false, false ); $img_obj = '
' . get_the_title() . '
'; } else { $img_obj = ''; @@ -41,7 +41,7 @@