ronalfy / reorder-posts

Reorder Posts
GNU General Public License v2.0
6 stars 0 forks source link

$post_count causes issues with custom MN_Reorder object #29

Open adrcok42 opened 7 years ago

adrcok42 commented 7 years ago

I needed to see more than just published pages, so I created my own MN_Reorder object like

$reorderArgs = array( 
        'post_type' => 'page', 
        'post_status' => array('publish', 'pending', 'draft', 'private'),
        'order'=> 'ASC' ) ;
new MN_Reorder($reorderArgs );

this throws PHP Fatal error: Cannot use object of type stdClass as array in metronet-reorder-posts/class-reorder.php on line 428

commenting out 428 fixes the issue.

ronalfy commented 7 years ago

Thanks, will check it out.