Skip to content

Commit

Permalink
Another note about $_POST['ds_npr_update_push'] validation
Browse files Browse the repository at this point in the history
  • Loading branch information
benlk committed Jun 23, 2016
1 parent dec28cb commit d5c5d67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions push_story.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ function nprstory_api_delete ( $post_ID ) {
* this is where the magic happens
*/
if ( isset( $_POST['ds_npr_update_push'] ) ) {
// No need to validate the ds_npr_update_push contents; we're checking only for its existence
// permissions check is handled by nprstory_api_push
add_action( 'save_post', 'nprstory_api_push', 10, 2 );
}
add_action( 'trash_post', 'nprstory_api_delete', 10, 2 );
Expand Down

0 comments on commit d5c5d67

Please sign in to comment.