• Resolved mhgx

    (@mhgx)


    In file php/class-minute-control.php method get_inline_container() causes PHP Warning: Attempt to read property "ID" on null when $post is null.

    I’d suggest changing:
    $data_url = 'sharethis_excerpt' === $type && '' !== $post ? esc_attr( 'data-url=' . get_permalink( $post->ID ) ) : '';
    to:
    $data_url = 'sharethis_excerpt' === $type && !empty($post) ? esc_attr( 'data-url=' . get_permalink( $post->ID ) ) : '';

    Above change eliminates warnings.

Viewing 1 replies (of 1 total)
  • Plugin Author ShareThis

    (@sharethis)

    Hey @mhgx, thank you for flagging this and for taking the time to propose a fix! We really appreciate your contribution. I’m happy to confirm that this warning has been addressed in our latest release. Your input helps us keep improving—thanks again for your support!

Viewing 1 replies (of 1 total)

The topic ‘PHP Warnings’ is closed to new replies.