Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/01/2015 09:47:22 PM (10 years ago)
Author:
johnjamesjacoby
Message:

XProfile: Pass $type into xprofile_admin_screen(). See #6318.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-admin.php

    r9668 r9673  
    3737function xprofile_admin( $message = '', $type = 'error' ) {
    3838
    39     $type = preg_replace( '|[^a-z]|i', '', $type );
    40 
    4139    if ( isset( $_GET['mode'] ) && isset( $_GET['group_id'] ) && 'add_field' == $_GET['mode'] ) {
    4240        xprofile_admin_manage_field( $_GET['group_id'] );
     
    6159
    6260    } else {
    63         xprofile_admin_screen( $message );
     61        xprofile_admin_screen( $message, $type );
    6462    }
    6563}
     
    7068 * @since BuddyPress (2.3.0)
    7169 *
     70 * @param string $message Feedback message
     71 * @param string $type    Feedback type
     72 *
    7273 * @todo Improve error message output
    7374 */
    74 function xprofile_admin_screen( $message = '' ) {
     75function xprofile_admin_screen( $message = '', $type = 'error' ) {
     76
     77    // Validate type
     78    $type = preg_replace( '|[^a-z]|i', '', $type );
    7579
    7680    // Get all of the profile groups & fields
Note: See TracChangeset for help on using the changeset viewer.