Changeset 1424438
- Timestamp:
- 05/26/2016 02:19:12 AM (10 years ago)
- File:
-
- 1 edited
-
author-wordcount/trunk/author-wordcount.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
author-wordcount/trunk/author-wordcount.php
r1063985 r1424438 86 86 87 87 if ( isset( $_POST[ 'wordcount_name' ] ) ) { 88 $name = stripslashes( $_POST[ 'wordcount_name' ] ); 88 89 89 90 if ( isset( $_POST[ 'wordcount_add' ] ) && … … 98 99 update_option( 'author_wordcount', $this->word_obj ); 99 100 100 } elseif ( isset( $_POST[ 'wordcount_delete' ] ) && 101 wp_verify_nonce( $_POST[ 'wp_nonce' ], 102 'update-' . $_POST[ 'wordcount_name' ] ) ) { 103 104 unset( $this->word_obj[ $_POST[ 'wordcount_name' ] ] ); 101 } elseif ( isset( $_POST[ 'wordcount_delete' ] ) ) { 102 103 unset( $this->word_obj[ $name ] ); 105 104 106 105 update_option( 'author_wordcount', $this->word_obj ); 107 106 108 } elseif ( isset( $_POST[ 'wordcount_update' ] ) && 109 wp_verify_nonce( $_POST[ 'wp_nonce' ], 110 'update-' . $_POST[ 'wordcount_name' ] ) ) { 107 } elseif ( isset( $_POST[ 'wordcount_update' ] ) ) { 111 108 112 109 $this->word_obj[ $_POST[ 'wordcount_name' ] ] = array(
Note: See TracChangeset
for help on using the changeset viewer.