[Plugin: Gallery] bug here?
-
if ( ! function_exists ( ‘gllr_save_postdata’ ) ) {
function gllr_save_postdata( $post_id, $post ) {
global $post, $wpdb;=============================================
Hi above code seems buggy because the function input param already has a $post variable here, but in the following statement, it declares another ‘global $post’ which will override the input param $post.xmlrpc call will get error here since the global $post is uninitialized in the xmlrpc call context.
zhouyi
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘[Plugin: Gallery] bug here?’ is closed to new replies.