Opened 13 years ago
Closed 13 years ago
#25895 closed defect (bug) (fixed)
get_search_stopwords : undefined var
| Reported by: | tivnet | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.8 |
| Component: | Query | Version: | 3.7 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
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)
#5
follow-up:
↓ 6
@
13 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
@
13 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: