Skip to content

Commit

Permalink
More internal docs for wp.org reviewers
Browse files Browse the repository at this point in the history
  • Loading branch information
benlk committed Jun 23, 2016
1 parent 3fd7429 commit 905d358
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions get_stories.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public static function nprstory_cron_pull() {

function load_page_hook() {
// find the input that is allegedly a story id
// We validate these later
if ( isset( $_POST ) && isset( $_POST[ 'story_id' ] ) ) {
$story_id = $_POST[ 'story_id' ] ;
if ( isset( $_POST['publishNow'] ) ){
Expand Down
2 changes: 1 addition & 1 deletion get_stories_ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function nprstory_get_stories() {
if ( ! $pull_url ) : nprstory_show_message ('You do not currently have an API Pull URL set. <a href="' . admin_url('options-general.php?page=ds_npr_api') . '">Set your API Pull URL here.</a>', TRUE);?>
<?php endif;

// Get the story ID from the URL, then paste it into the input
// Get the story ID from the URL, then paste it into the input's value field with esc_attr
$story_id = '';
if ( ( isset( $_POST ) and isset( $_POST[ 'story_id' ] ) ) || ( isset( $_GET) && isset( $_GET['story_id'] ) ) ) {
if ( ! empty( $_POST['story_id'] ) ){
Expand Down

0 comments on commit 905d358

Please sign in to comment.