Skip to content

$post_count causes issues with custom MN_Reorder object #29

Open

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.

Activity

  1. ronalfy commented on Aug 29, 2016

    @ronalfy
    Collaborator

    Thanks, will check it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions