-
Notifications
You must be signed in to change notification settings - Fork 5
Maintenance mode status #19
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingcommand:maintenance-mode-statusRelated to 'maintenance-mode status' commandRelated to 'maintenance-mode status' commandgood-first-issueGood for newcomersGood for newcomers
Milestone
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcommand:maintenance-mode-statusRelated to 'maintenance-mode status' commandRelated to 'maintenance-mode status' commandgood-first-issueGood for newcomersGood for newcomers
Type
Fields
Give feedbackNo fields configured for issues without a type.
Bug Report
Describe the current, buggy behavior
The internal check
get_maintenance_mode_status()does not provide information about the status. It just checks if the .maintenance file exists. If you don't do a plugin update or something that actually removes the file, this is an issue.Describe the solution you'd like
Either have a .maintenance file which does not outdate (
$upgrading = time()), or add a date check to the function.Describe how other contributors can replicate this bug
Reproduce:
wp maintenance-mode activatewp maintenance-mode statusDescribe what you would expect as the correct outcome
The output would tell if the site is accessible or in maintenance mode.
Let us know what environment you are running this on