Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/13/2011 09:54:52 PM (15 years ago)
Author:
boonebgorges
Message:

Introduces bp_do_404() for easy 404ing. Corrects invalid path handling throughout, using bp_do_404(). Fixes #3280. Props DJPaul

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-settings/bp-settings-actions.php

    r4372 r4506  
    11<?php
    2 
    3 
    42/** General *******************************************************************/
    53
    64function bp_settings_screen_general_settings() {
    75        global $bp;
     6
     7        if ( !empty( $bp->action_variables ) ) {
     8                bp_do_404();
     9                return;
     10        }
    811
    912        // Setup private variables
     
    112115        global $bp;
    113116
     117        if ( !empty( $bp->action_variables ) ) {
     118                bp_do_404();
     119                return;
     120        }
     121
    114122        if ( isset( $_POST['submit'] ) ) {
    115123                check_admin_referer('bp_settings_notifications');
     
    135143        global $bp;
    136144
     145        if ( !empty( $bp->action_variables ) ) {
     146                bp_do_404();
     147                return;
     148        }
     149
    137150        if ( isset( $_POST['delete-account-understand'] ) ) {
    138151                // Nonce check
Note: See TracChangeset for help on using the changeset viewer.