Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/21/2014 11:08:04 PM (11 years ago)
Author:
johnjamesjacoby
Message:

First pass at Profile Settings for improved profile field visibility UX:

  • Adds /members/single/settings/profile.php template to bp-legacy and bp-default.
  • Introduces bp-xprofile.settings.php for Settings specific functionality going forward.
  • Introduces actions & screens for handling output and saving of profile visibility data.
  • Introduces _is_ function for identifying the new component/action URL.
  • See #5352. (still more @todo...)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-template.php

    r7926 r7960  
    18721872}
    18731873
     1874/**
     1875 * Is this a user's profile settings?
     1876 *
     1877 * Eg http://example.com/members/joe/settings/profile/.
     1878 *
     1879 * @since BuddyPress (2.0.0)
     1880 *
     1881 * @return bool True if the current page is a user's Profile Settings page.
     1882 */
     1883function bp_is_user_settings_profile() {
     1884    if ( bp_is_user_settings() && bp_is_current_action( 'profile' ) )
     1885        return true;
     1886
     1887    return false;
     1888}
     1889
    18741890/** Groups ********************************************************************/
    18751891
Note: See TracChangeset for help on using the changeset viewer.