Skip to content

Commit

Permalink
Remove user settings
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Aug 13, 2023
1 parent c9aa0bf commit df97787
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 151 deletions.
10 changes: 2 additions & 8 deletions src/wp-to-twitter-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ function wpt_updated_settings() {
}

update_option( 'twitter-analytics-campaign', sanitize_text_field( $_POST['twitter-analytics-campaign'] ) );
update_option( 'jd_individual_twitter_users', ( isset( $_POST['jd_individual_twitter_users'] ) ? 1 : 0 ) );

if ( isset( $_POST['wpt_caps'] ) ) {
$perms = map_deep( $_POST['wpt_caps'], 'sanitize_text_field' );
Expand Down Expand Up @@ -591,17 +590,12 @@ function wpt_update_settings() {
</div>
<div class="ui-sortable meta-box-sortables">
<div class="postbox">
<h3><span><?php _e( 'Author Settings', 'wp-to-twitter' ); ?></span></h3>
<h3><span><?php _e( 'Permissions', 'wp-to-twitter' ); ?></span></h3>
<div class="inside">

<p>
<input type="checkbox" name="jd_individual_twitter_users" id="jd_individual_twitter_users" value="1" <?php echo wpt_checkbox( 'jd_individual_twitter_users' ); ?> />
<label for="jd_individual_twitter_users"><?php _e( 'Enable User Account Settings', 'wp-to-twitter' ); ?></label>
</p>

<div class='wpt-permissions'>
<fieldset>
<legend><?php _e( 'Permissions', 'wp-to-twitter' ); ?></legend>
<legend class="screen-reader-text"><?php _e( 'Permissions', 'wp-to-twitter' ); ?></legend>
<?php
global $wp_roles;
$roles = $wp_roles->get_names();
Expand Down
143 changes: 0 additions & 143 deletions src/wp-to-twitter-users.php

This file was deleted.

0 comments on commit df97787

Please sign in to comment.