#47638 closed defect (bug) (fixed)
Undefined variable: climits in class-wp-query.php at line 2632.
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.3 | Priority: | normal |
Severity: | minor | Version: | 5.2.2 |
Component: | Query | Keywords: | has-screenshots good-first-bug has-patch |
Focuses: | Cc: |
Description
Hi there,
sometimes I find this bug in debug_log file: Undefined variable: climits in /www/wptest/public/wp-includes/class-wp-query.php at line 2632.
I have opened the file class-wp-query.php and I think the issue is that $climits variable isn't initialized.
Look this screenshot for more details:http://prntscr.com/o9j9z6
Attachments (1)
Change History (6)
#1
@
6 years ago
- Keywords good-first-bug added; dev-feedback removed
- Milestone changed from Awaiting Review to 5.3
#2
@
6 years ago
- Keywords has-patch added; needs-patch removed
I have created patch 47638.diff which defines a $climits
variable outside of the condition.
Note: See
TracTickets for help on using
tickets.
Hi @agengineering, welcome to WordPress Trac! Thanks for the report.
Indeed,
$climits
is only defined inside a conditional. Good catch!