Skip to content

$post_count causes issues with custom MN_Reorder object #29

@adrcok42

Description

@adrcok42

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions