• If I filter the Posts Page using URL parameters and have a combination that doesn’t yield posts, I’m getting

    ErrorException (E_NOTICE)
    Trying to get property ‘ID’ of non-object

    on duplicatepage.php:317 (
    'href' => esc_url_raw(admin_url().'admin.php?action=dt_duplicate_post_as_draft&post='.$post->ID.'&nonce='.wp_create_nonce( 'dt-duplicate-page-'.$post->ID ))
    ).

    Adding && isset($GLOBALS['post']) on :311 prevents this error.

    Pretty new to WordPress development, if there is a way for me to submit this as a patch instead of as an issue, I’d love to have some coaching on how.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Trying to get property ‘ID’ of non-object on Posts Page with URL Queries’ is closed to new replies.