#25301 closed defect (bug) (fixed)
Warning when displaying a Drop-in whose Constant is not defined in wp-config.php
| Reported by: | adiant | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.7 |
| Component: | Network Admin | Version: | 3.6.1 |
| Severity: | minor | Keywords: | |
| Cc: | Focuses: | multisite |
Description
"Warning: constant(): Couldn't find constant SUNRISE in C:\xampp\htdocs\wpnet\wp-admin\includes\class-wp-plugins-list-table.php on line 324"
is displayed on /wp-admin/network/plugins.php?plugin_status=dropins when a Drop-in is present in /wp-content/ but wp-config.php does not DEFINE its constant.
Suggested resolution:
Prefix constant() function with @ in line 324 of /wp-admin/includes/class-wp-plugins-list-table.php as shown:
} elseif ( @constant( $dropins[ $plugin_file ][1] ) ) { // Constant is true
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 25425: