| @@ -32,10 +32,10 @@ | ||
| 32 | 32 | $aFeed = 'a syndicated feed'; |
| 33 | 33 | endif; |
| 34 | 34 | ?> |
| 35 | 35 | <tr> |
| 36 | - <th scope="row"><?php esc_html_e('Updated posts:') ?></th> | |
| 37 | - <td><p>When <?php print esc_html( $aFeed ); ?> includes updated content for | |
| 36 | + <th scope="row"><?php _e('Updated posts:') ?></th> | |
| 37 | + <td><p>When <?php print $aFeed; ?> includes updated content for | |
| 38 | 38 | a post that was already syndicated, should the syndicated copy |
| 39 | 39 | of the post be updated to match the revised version?</p> |
| 40 | 40 | |
| 41 | 41 | <?php |
| @@ -48,17 +48,17 @@ | ||
| 48 | 48 | </td></tr> |
| 49 | 49 | <?php |
| 50 | 50 | } /* UpdatedPostsControl::display() */ |
| 51 | 51 | |
| 52 | - function accept_POST () { | |
| 52 | + function accept_POST ($post) { | |
| 53 | 53 | if ($this->page->for_feed_settings()) : |
| 54 | - if ( ! is_null( FeedWordPress::post( 'freeze_updates' ) ) ) : | |
| 55 | - $this->page->link->settings['freeze updates'] = FeedWordPress::post( 'freeze_updates' ); | |
| 54 | + if (isset($post['freeze_updates'])) : | |
| 55 | + $this->page->link->settings['freeze updates'] = $post['freeze_updates']; | |
| 56 | 56 | endif; |
| 57 | 57 | else : |
| 58 | 58 | // Updated posts |
| 59 | - if ( ! is_null( FeedWordPress::post( 'freeze_updates' ) ) ) : | |
| 60 | - update_option('feedwordpress_freeze_updates', FeedWordPress::post( 'freeze_updates' )); | |
| 59 | + if (isset($post['freeze_updates'])) : | |
| 60 | + update_option('feedwordpress_freeze_updates', $post['freeze_updates']); | |
| 61 | 61 | endif; |
| 62 | 62 | endif; |
| 63 | 63 | } /* UpdatedPostsControl::accept_POST() */ |
| 64 | 64 | } /* class UpdatedPostsControl */ |