• Resolved alm06130

    (@alm06130)


    The plugin doesn’t work, I found that the function fbseu_email_facebook expects $post_Id as argument.
    But (see in wp-includes/post.php), the do_action in function wp_transition_post_status transmits $post.
    So I had to modify as follow to make the plugin work:

    function fbseu_email_facebook($post)  {
       $SECRET_EMAIL = get_option('fbseu_secret_email');
       $title = $post->post_title;
       $href = get_permalink($post->ID);
       mail( $SECRET_EMAIL, $title.' '.$href , '     ');
       return $post->ID;
    }

    http://wordpress.org/extend/plugins/facebook-status-email-updater/

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

    (@cjellison)

    Thanks for the notice and the fix! I added it into version 1.2.

    I really appreciate your help.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Facebook Status – Email Updater] bad arg in fbseu_email_facebook?’ is closed to new replies.