Some function are not using their aguments
-
Some functions are missing the use of arguments.
For example on version ^1.7
function mpd_process_persist( $post_id, $destination_id, $created_post = false){ if(isset($_POST['persist'])){ $args = array( 'source_id' => get_current_blog_id(), 'destination_id' => $destination_id, 'source_post_id' => $_POST['ID'], 'destination_post_id' => $created_post['id'] ); mpd_add_persist($args); } }
Look how you are using ‘source_post_id’ => $_POST[‘ID’], instead the argument $post_id
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Some function are not using their aguments’ is closed to new replies.