Changeset 6287 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-committers.php
- Timestamp:
- 12/19/2017 04:22:37 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-committers.php
r2994 r6287 1 1 <?php 2 2 namespace WordPressdotorg\Plugin_Directory\Admin\Metabox; 3 3 4 use WordPressdotorg\Plugin_Directory\Admin\List_Table; 4 5 use WordPressdotorg\Plugin_Directory\Tools; … … 36 37 */ 37 38 public static function add_committer() { 38 $login 39 $post_id 39 $login = isset( $_POST['add_committer'] ) ? sanitize_user( $_POST['add_committer'] ) : ''; 40 $post_id = isset( $_POST['post_id'] ) ? (int) $_POST['post_id'] : 0; 40 41 41 42 check_ajax_referer( 'add-committer' ); … … 85 86 */ 86 87 public static function remove_committer() { 87 $id = isset( $_POST['id'] ) ? (int) $_POST['id']: 0;88 $id = isset( $_POST['id'] ) ? (int) $_POST['id'] : 0; 88 89 $post_id = isset( $_POST['post_id'] ) ? (int) $_POST['post_id'] : 0; 89 90
Note: See TracChangeset
for help on using the changeset viewer.