| @@ -72,9 +72,9 @@ | ||
| 72 | 72 | array( |
| 73 | 73 | 'slug' => 'userswp', |
| 74 | 74 | 'version' => USERSWP_VERSION, |
| 75 | 75 | 'support_url' => 'https://userswp.io/support/', |
| 76 | - 'documentation_url' => 'https://userswp.io/documentation/', | |
| 76 | + 'documentation_url' => 'https://docs.userswp.io/', | |
| 77 | 77 | 'activated' => get_option( 'uwp_installed_on', 0 ), |
| 78 | 78 | ) |
| 79 | 79 | ); |
| 80 | 80 | } |
| @@ -130,17 +130,8 @@ | ||
| 130 | 130 | $restricted_roles = (array) uwp_get_option( 'admin_blocked_roles', array() ); |
| 131 | 131 | |
| 132 | 132 | // Checking action in request to allow ajax request go through |
| 133 | 133 | if ( ! empty( $restricted_roles ) && is_user_logged_in() && ! wp_doing_ajax() && ! wp_doing_cron() ) { |
| 134 | - $action = ! empty( $_POST['action'] ) ? sanitize_text_field( wp_unslash( $_POST['action'] ) ) : ''; | |
| 135 | - | |
| 136 | - /* | |
| 137 | - * Prevent conflicts with MailPoet plugin. | |
| 138 | - */ | |
| 139 | - if ( in_array( $action, array( 'mailpoet_subscription_update' ) ) ) { | |
| 140 | - return; | |
| 141 | - } | |
| 142 | - | |
| 143 | 134 | $roles = wp_get_current_user()->roles; |
| 144 | 135 | |
| 145 | 136 | $prevent = false; |
| 146 | 137 | |
| @@ -859,9 +850,9 @@ | ||
| 859 | 850 | */ |
| 860 | 851 | public static function plugin_row_meta( $links, $file ) { |
| 861 | 852 | if ( USERSWP_PLUGIN_BASENAME == $file ) { |
| 862 | 853 | $row_meta = array( |
| 863 | - 'docs' => '<a href="' . esc_url( 'https://userswp.io/documentation/' ) . '" aria-label="' . esc_attr__( 'View UsersWP Documentation', 'userswp' ) . '">' . esc_html__( 'Docs', 'userswp' ) . '</a>', | |
| 854 | + 'docs' => '<a href="' . esc_url( 'https://docs.userswp.io/' ) . '" aria-label="' . esc_attr__( 'View UsersWP Documentation', 'userswp' ) . '">' . esc_html__( 'Docs', 'userswp' ) . '</a>', | |
| 864 | 855 | 'support' => '<a href="' . esc_url( 'https://userswp.io/support/' ) . '" aria-label="' . esc_attr__( 'Visit UsersWP support', 'userswp' ) . '">' . esc_html__( 'Support', 'userswp' ) . '</a>', |
| 865 | 856 | 'translation' => '<a href="' . esc_url( 'https://userswp.io/translate/projects' ) . '" aria-label="' . esc_attr__( 'View translations', 'userswp' ) . '">' . esc_html__( 'Translations', 'userswp' ) . '</a>', |
| 866 | 857 | ); |
| 867 | 858 | |
| @@ -1323,16 +1314,8 @@ | ||
| 1323 | 1314 | */ |
| 1324 | 1315 | public function handle_bulk_user_type_change() { |
| 1325 | 1316 | if ( ! isset( $_GET['uwp_change_user_type'], $_GET['uwp_new_user_type'] ) ) { |
| 1326 | 1317 | return; |
| 1327 | - } | |
| 1328 | - | |
| 1329 | - if ( ! isset( $_GET['_wpnonce'] ) || ! wp_verify_nonce( $_GET['_wpnonce'], 'bulk-users' ) ) { | |
| 1330 | - wp_die( __( 'Security check failed. Please try again.' ) ); | |
| 1331 | - } | |
| 1332 | - | |
| 1333 | - if ( ! current_user_can( 'edit_users' ) ) { | |
| 1334 | - wp_die( __( 'You do not have permission to perform this action.' ) ); | |
| 1335 | 1318 | } |
| 1336 | 1319 | |
| 1337 | 1320 | $new_user_type = absint( $_GET['uwp_new_user_type'] ); |
| 1338 | 1321 | |