I downloaded the sample code for the Post Products plugin, posted it to my WordPress test server, activated it, and when I try to preview or view the page, I get the following warnings/errors:
Code:
Warning: Missing argument 2 for pp_save_meta_box() in /public_html/wordpress/test/wp-content/plugins/post-products/post-products.php on line 136
Notice: Undefined variable: post in /public_html/wordpress/test/wp-content/plugins/post-products/post-products.php on line 138
Notice: Trying to get property of non-object in /public_html/wordpress/test/wp-content/plugins/post-products/post-products.php on line 138
Line 136 is:
Code:
function pp_save_meta_box($post_id,$post) {
Line 138 is:
Code:
if($post->post_type == 'revision') { return; }
I assume it is having trouble finding the $post variable/value but other than a global $post being declared at the top of the file, I can't see where this is being set... it should be passed in via the function call and since the plugin doens't call the function, I'm not sure where the parameters are being set.
What am I missing?