Opened 2 years ago
Closed 8 months ago
#9005 closed defect (bug) (invalid)
PHP Warning: Undefined variable $max
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | Blogs | Keywords: | close |
| Cc: |
Description
Hi.
I think the variable
$max
should be changed to
$r['max']
The current variable '$max' produces a PHP Warning: Undefined variable $max
Thanks in advance
Lena
Change History (5)
#2
@
2 years ago
- Keywords reporter-feedback added; needs-patch removed
Well it's actually defined at line 163: $max = (int) wp_unslash( $r['max'] );.
Are you sure the notice error is about this file?
#3
@
2 years ago
- Keywords close added; reporter-feedback removed
- Milestone 12.0.0 deleted
Hi.
Yes you are right.
It is fixed in the /trunk version.
I have in my installation the 11.3.1 BuddyPress which had the bug.
So, false alarm :-)
Keep up the good work.
Bests,
Lena
Thanks for your report @lenasterg : I agree 👌. I’ll take care of this asap.