@@ -10,8 +10,8 @@ |
||
| 10 | 10 | if ( ! class_exists( 'PLUGIN_TABLE' ) ) { |
| 11 | 11 | |
| 12 | 12 | if ( ! class_exists( 'WP_List_Table' ) ) { |
| 13 | - require_once( ABSPATH . 'wp-admin/includes/screen.php' ); |
|
| 14 | - require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' ); |
|
| 13 | + require_once( ABSPATH . 'wp-admin/includes/screen.php' ); |
|
| 14 | + require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' ); |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | final class PLUGIN_TABLE extends WP_List_Table { |
@@ -44,13 +44,13 @@ |
||
| 44 | 44 | global $wpdb; |
| 45 | 45 | $wpdb->hide_errors(); |
| 46 | 46 | $collate = ""; |
| 47 | - if ( $wpdb->has_cap( 'collation' ) ) { |
|
| 47 | + if ( $wpdb->has_cap( 'collation' ) ) { |
|
| 48 | 48 | if( ! empty($wpdb->charset ) ) |
| 49 | 49 | $collate .= "DEFAULT CHARACTER SET $wpdb->charset"; |
| 50 | 50 | if( ! empty($wpdb->collate ) ) |
| 51 | 51 | $collate .= " COLLATE $wpdb->collate"; |
| 52 | - } |
|
| 53 | - require_once( $this->up_path ); |
|
| 52 | + } |
|
| 53 | + require_once( $this->up_path ); |
|
| 54 | 54 | return $collate; |
| 55 | 55 | } |
| 56 | 56 | |
@@ -53,8 +53,8 @@ discard block |
||
| 53 | 53 | add_action( 'admin_menu', array( $this, 'menu_page' ) ); |
| 54 | 54 | add_action( 'admin_menu', array( $this, 'sub_menu_page' ) ); |
| 55 | 55 | add_filter( 'set-screen-option', array( $this, 'set_screen' ), 10, 3 ); |
| 56 | - * |
|
| 57 | - */ |
|
| 56 | + * |
|
| 57 | + */ |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | |
@@ -103,8 +103,8 @@ discard block |
||
| 103 | 103 | //Set screen option |
| 104 | 104 | public function set_screen($status, $option, $value) { |
| 105 | 105 | |
| 106 | - if ( 'option_name_per_page' == $option ) return $value; // Related to PLUGIN_TABLE() |
|
| 107 | - //return $status; |
|
| 106 | + if ( 'option_name_per_page' == $option ) return $value; // Related to PLUGIN_TABLE() |
|
| 107 | + //return $status; |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | echo '<textarea name="settings_field_name" id="settings_field_name" value="' . get_option('settings_field_name') . '>'. __( 'Enter Value', 'textdomain' ) . '</textarea>'; |
| 202 | 202 | echo '<select name="settings_field_name" id="settings_field_name"><option value="value" ' . selected( 'value', get_option('settings_field_name'), false) . '>Value</option></select>'; |
| 203 | 203 | echo '<input type="checkbox" id="settings_field_name" name="settings_field_name" value="1"' . checked( 1, get_option('settings_field_name'), false ) . '/>'; |
| 204 | - */ |
|
| 204 | + */ |
|
| 205 | 205 | } |
| 206 | 206 | } |
| 207 | 207 | } ?> |
@@ -29,12 +29,12 @@ |
||
| 29 | 29 | /** |
| 30 | 30 | $user_args = $this->user_args($paged); |
| 31 | 31 | $the_query = new WP_User_Query( $user_args ); |
| 32 | - */ |
|
| 32 | + */ |
|
| 33 | 33 | |
| 34 | 34 | // The Loop |
| 35 | 35 | if ( $the_query->have_posts() ) { |
| 36 | 36 | while ( $the_query->have_posts() ) { |
| 37 | - $the_query->the_post(); |
|
| 37 | + $the_query->the_post(); |
|
| 38 | 38 | // Do Stuff |
| 39 | 39 | } // end while |
| 40 | 40 | } // endif |