#37380 closed defect (bug) (fixed)
Undefined variable: usingpi / Undefined variable: writable / Undefined variable: update_required
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.6 | Priority: | normal |
Severity: | normal | Version: | 4.6 |
Component: | Permalinks | Keywords: | has-patch |
Focuses: | Cc: |
Description
Happens with 4.6-beta3-38065
Steps
1.Fresh WP
2.Login
3.Go to Settings > Permalinks
4.Press "Save Changes"
5.Check debug.log
debug.log has these entries
PHP Notice: Undefined variable: usingpi in /var/www/html/tmp_phpnotices_60/wp-admin/options-permalink.php on line 113 PHP Stack trace: PHP 1. {main}() /var/www/html/tmp_phpnotices_60/wp-admin/options-permalink.php:0 PHP Notice: Undefined variable: writable in /var/www/html/tmp_phpnotices_60/wp-admin/options-permalink.php on line 113 PHP Stack trace: PHP 1. {main}() /var/www/html/tmp_phpnotices_60/wp-admin/options-permalink.php:0 PHP Notice: Undefined variable: update_required in /var/www/html/tmp_phpnotices_60/wp-admin/options-permalink.php on line 113 PHP Stack trace: PHP 1. {main}() /var/www/html/tmp_phpnotices_60/wp-admin/options-permalink.php:0
My environment
-Apache/2.4.7 (Ubuntu)
-PHP version: 7.0.8-4 / Apache 2.0 Handler
Attachments (2)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Hi there, and thanks for the report!
This is indeed introduced in 4.6-beta3, with revision r37747
The attached patch moves the definition of
$usingpi
to be available before the IF block.