• #1. Install the fresh one of newest version (at this moment is 3.1.3)
    #2. In back end, click on Media, then warning messages as following:

    Warning: explode() expects parameter 2 to be string, array given in E:\xampp\htdocs\wp313\wp-includes\query.php on line 2390

    Warning: in_array() expects parameter 2 to be array, null given in E:\xampp\htdocs\wp313\wp-includes\query.php on line 2399

    #3. Fix it in wp-includes\query.php
    Replace line 2390:

    $q_status = explode(‘,’, $q[‘post_status’]);

    by these lines of code:

    if ( is_array ( $q[‘post_status’] ))
    $q_status = $q[‘post_status’];
    else
    $q_status = explode(‘,’, $q[‘post_status’]);

    Have fun.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Bug when clicking on Media menu in back end’ is closed to new replies.