Opened 11 years ago
Closed 11 years ago
#25895 closed defect (bug) (fixed)
get_search_stopwords : undefined var
Reported by: | tivnet | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 3.8 | Priority: | normal |
Severity: | normal | Version: | 3.7 |
Component: | Query | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
If translators decide to have an empty list of stopwords, there will be an undefined variable warning, because $stopwords
was not initialized before the loop
Added $stopwords = array();
before the loop.
Attachments (1)
Change History (9)
#2
@
11 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
#3
@
11 years ago
- Keywords commit fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
#5
follow-up:
↓ 6
@
11 years ago
I think this would actually end up being an E_WARNING, due to in_array() not receiving an array.
#6
in reply to:
↑ 5
@
11 years ago
Replying to nacin:
I think this would actually end up being an E_WARNING, due to in_array() not receiving an array.
Correct:
Notice: Undefined variable: stopwords in wp-includes/query.php on line 2033 Warning: in_array() [function.in-array]: Wrong datatype for second argument in wp-includes/query.php on line 1993
Note: See
TracTickets for help on using
tickets.
In 26060: