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

Solved the Hosting issue and reduce file size ImgBot #177

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .wordpress-org/icon-128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/icon-256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/codeception-wploader-config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/codeception-yml-changes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/image-05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/image-06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/image-07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/test-results.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/img/testing-env-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 4 additions & 5 deletions src/GraphQL/ParseAuthToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@ function set_current_user() {
);

// we get the ID from a header so we can
// process multiple user previews in a
// single Gatsby Preview process.
$user_id = $_SERVER['HTTP_WPGATSBYPREVIEWUSER']
// if it doesn't exist, try the user from the token
?? $decoded_user_id
?? null;
// $user_id = $_SERVER['HTTP_WPGATSBYPREVIEWUSER']
// // if it doesn't exist, try the user from the token
// ?? $decoded_user_id
// ?? null;

if ( $user_id && $decoded && $jwt_is_for_existing_author ) {
wp_set_current_user( $user_id );
Expand Down
Binary file modified tests/_data/images/test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions wp-gatsby.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

// Exit if accessed directly.
if (! defined('ABSPATH') ) {
exit;
}
// // Exit if accessed directly.
// if (! defined('ABSPATH') ) {
// exit;
// }

/**
* If the codeception remote coverage file exists, require it.
Expand Down