#9565 closed defect (bug) (invalid)
Bizarre PHP Warnings - WP 2.8
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | high | |
Severity: | normal | Version: | 2.8 |
Component: | Warnings/Notices | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
I have a new installation of WP r10986, checked out from SVN, you can find the site here:
I got some PHP warnings here:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/wpvn/public_html/beta/wp-includes/query.php on line 2305
Warning: array_map() [function.array-map]: Argument #2 should be an array in /home/wpvn/public_html/beta/wp-includes/query.php on line 2321
Warning: implode() [function.implode]: Invalid arguments passed in /home/wpvn/public_html/beta/wp-includes/query.php on line 2321
Change History (7)
#2
@
16 years ago
sounds like the kind of thing r10955 was meant for. I take it the option contains a string?
in wp-includes/query.php, please change the following, at line 2305:
$sticky_posts = get_option('sticky_posts');
with:
$sticky_posts = get_option('sticky_posts'); var_dump($sticky_posts);
#4
@
16 years ago
Tracing this back into the source, wondering how a string got in there in the first place.
r8546 seems to add an array out of the box. any odds you were using a plugin in the past that might have kept a string in there?
FYI: http://wordpress.org/about/domains/