#9565 closed defect (bug) (invalid)
Bizarre PHP Warnings - WP 2.8
| Reported by: | link2caro | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | Warnings/Notices | Version: | 2.8 |
| Severity: | normal | Keywords: | reporter-feedback |
| Cc: | Focuses: |
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
@
17 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);
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
FYI: http://wordpress.org/about/domains/