Changeset 9673 for trunk/src/bp-xprofile/bp-xprofile-admin.php
- Timestamp:
- 04/01/2015 09:47:22 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-admin.php
r9668 r9673 37 37 function xprofile_admin( $message = '', $type = 'error' ) { 38 38 39 $type = preg_replace( '|[^a-z]|i', '', $type );40 41 39 if ( isset( $_GET['mode'] ) && isset( $_GET['group_id'] ) && 'add_field' == $_GET['mode'] ) { 42 40 xprofile_admin_manage_field( $_GET['group_id'] ); … … 61 59 62 60 } else { 63 xprofile_admin_screen( $message );61 xprofile_admin_screen( $message, $type ); 64 62 } 65 63 } … … 70 68 * @since BuddyPress (2.3.0) 71 69 * 70 * @param string $message Feedback message 71 * @param string $type Feedback type 72 * 72 73 * @todo Improve error message output 73 74 */ 74 function xprofile_admin_screen( $message = '' ) { 75 function xprofile_admin_screen( $message = '', $type = 'error' ) { 76 77 // Validate type 78 $type = preg_replace( '|[^a-z]|i', '', $type ); 75 79 76 80 // Get all of the profile groups & fields
Note: See TracChangeset
for help on using the changeset viewer.