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

Avoid auto-reload on offline/500 template if page called directly for development #716

Merged

Conversation

thelovekesh
Copy link
Collaborator

@thelovekesh thelovekesh commented Mar 1, 2022

If user open page from /?wp_error_template=offline, do not reload the page

See #697 (comment)

If user open page from /?wp_error_template=offline, do not reload the page
@codecov-commenter
Copy link

Codecov Report

Merging #716 (11a8019) into develop (749a985) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop     #716   +/-   ##
==========================================
  Coverage      19.96%   19.96%           
  Complexity       326      326           
==========================================
  Files             56       56           
  Lines           2094     2094           
==========================================
  Hits             418      418           
  Misses          1676     1676           
Flag Coverage Δ
php 19.96% <ø> (ø)
unit 19.96% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
wp-includes/template.php 11.11% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 749a985...11a8019. Read the comment docs.

@thelovekesh
Copy link
Collaborator Author

@westonruter This PR is ready for your review, I have added the changes as you asked in #697 (comment)

@westonruter westonruter added this to the 0.7 milestone Mar 1, 2022
@westonruter westonruter merged commit ad09837 into develop Mar 1, 2022
@westonruter westonruter deleted the add/exit-offline-reloading-when-called-directly branch March 1, 2022 17:29
@westonruter westonruter changed the title Exit offline/500 page reloading if page called directly Avoid auto-reload on offline/500 template if page called directly for development Mar 1, 2022
@westonruter westonruter added this to Ready for QA in Ongoing Mar 1, 2022
@pooja-muchandikar
Copy link

QA Passed ✅

The changes are working as expected.

@maitreyie-chavan maitreyie-chavan moved this from Ready for QA to QA Passed in Ongoing Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Ongoing
  
QA Passed
Development

Successfully merging this pull request may close these issues.

None yet

4 participants