Skip to:
Content

BuddyPress.org

Ticket #4445: since-comments.patch

File since-comments.patch, 48.9 KB (added by fanquake, 12 years ago)
  • bp-activity/admin/js/admin.dev.js

    # This patch file was generated by NetBeans IDE
    # Following Index: paths are relative to: /Applications/MAMP/htdocs/wp-content/plugins/buddypress-svn
    # This patch can be applied using context Tools: Patch action on respective folder.
    # It uses platform neutral UTF-8 encoding and \n newlines.
    # Above lines and this line are ignored by the patching process.
     
    33/**
    44 * Activity reply object for the activity index screen
    55 *
    6  * @since 1.6
     6 * @since BuddyPress (1.6)
    77 */
    88var activityReply = {
    99
    1010        /**
    1111         * Attach event handler functions to the relevant elements.
    1212         *
    13          * @since 1.6
     13         * @since BuddyPress (1.6)
    1414         */
    1515        init : function() {
    1616                $(document).on( 'click', '.row-actions a.reply',              activityReply.open );
     
    2828        /**
    2929         * Reveals the entire row when "reply" is pressed.
    3030         *
    31          * @since 1.6
     31         * @since BuddyPress (1.6)
    3232         */
    3333        open : function( e ) {
    3434                // Hide the container row, and move it to the new location
     
    4545        /**
    4646         * Hide and reset the entire row when "cancel", or escape, are pressed.
    4747         *
    48          * @since 1.6
     48         * @since BuddyPress (1.6)
    4949         */
    5050        close : function( e ) {
    5151                // Hide the container row
     
    6565        /**
    6666         * Submits "form" via AJAX back to WordPress.
    6767         *
    68          * @since 1.6
     68         * @since BuddyPress (1.6)
    6969         */
    7070        send : function( e ) {
    7171                // Hide any existing error message, and show the loading spinner
     
    9999        /**
    100100         * send() error message handler
    101101         *
    102          * @since 1.6
     102         * @since BuddyPress (1.6)
    103103         */
    104104        error : function( r ) {
    105105                var er = r.statusText;
     
    117117        /**
    118118         * send() success handler
    119119         *
    120          * @since 1.6
     120         * @since BuddyPress (1.6)
    121121         */
    122122        show : function ( xml ) {
    123123                var bg, id, response;
  • bp-activity/bp-activity-actions.php

     
    175175 * @global object $bp BuddyPress global settings
    176176 * @param int $activity_id Activity id to be deleted. Defaults to 0.
    177177 * @return bool False on failure
    178  * @since 1.6
     178 * @since BuddyPress (1.6)
    179179 */
    180180function bp_activity_action_spam_activity( $activity_id = 0 ) {
    181181        global $bp;
     
    577577 * Loads Akismet
    578578 *
    579579 * @global object $bp BuddyPress global settings
    580  * @since 1.6
     580 * @since BuddyPress (1.6)
    581581 */
    582582function bp_activity_setup_akismet() {
    583583        global $bp;
  • bp-activity/bp-activity-admin.php

     
    66 * on which this implementation is heavily based.
    77 *
    88 * @package BuddyPress
    9  * @since 1.6
     9 * @since BuddyPress (1.6)
    1010 * @subpackage Activity
    1111 */
    1212
     
    2323/**
    2424 * Registers the Activity component admin screen
    2525 *
    26  * @since 1.6
     26 * @since BuddyPress (1.6)
    2727 */
    2828function bp_activity_add_admin_menu() {
    2929
     
    4242 * AJAX receiver for Activity replies via the admin screen. Adds a new activity
    4343 * comment, and returns HTML for a new table row.
    4444 *
    45  * @since 1.6
     45 * @since BuddyPress (1.6)
    4646 */
    4747function bp_activity_admin_reply() {
    4848        // Check nonce
     
    116116 * @param string $option Screen option name
    117117 * @param string $new_value Screen option form value
    118118 * @return string Option value. False to abandon update.
    119  * @since 1.6
     119 * @since BuddyPress (1.6)
    120120 */
    121121function bp_activity_admin_screen_options( $value, $option, $new_value ) {
    122122        if ( 'toplevel_page_bp_activity_per_page' != $option && 'toplevel_page_bp_activity_network_per_page' != $option )
     
    135135 *
    136136 * @param WP_Screen $screen Screen identifier
    137137 * @return array Hidden Meta Boxes
    138  * @since 1.0
     138 * @since BuddyPress (1.0)
    139139 */
    140140function bp_activity_admin_edit_hidden_metaboxes( $hidden, $screen ) {
    141141        if ( empty( $screen->id ) || 'toplevel_page_bp-activity' != $screen->id && 'toplevel_page_bp-activity_network' != $screen->id )
     
    153153 *
    154154 * @global object $bp BuddyPress global settings
    155155 * @global BP_Activity_List_Table $bp_activity_list_table Activity screen list table
    156  * @since 1.6
     156 * @since BuddyPress (1.6)
    157157 */
    158158function bp_activity_admin_load() {
    159159        global $bp, $bp_activity_list_table;
     
    503503/**
    504504 * Outputs the Activity component admin screens
    505505 *
    506  * @since 1.6
     506 * @since BuddyPress (1.6)
    507507 */
    508508function bp_activity_admin() {
    509509        // Decide whether to load the index or edit screen
     
    522522 * Display the single activity edit screen
    523523 *
    524524 * @global int $screen_layout_columns Number of columns shown on this admin page
    525  * @since 1.6
     525 * @since BuddyPress (1.6)
    526526 */
    527527function bp_activity_admin_edit() {
    528528        global $screen_layout_columns;
     
    616616 * Status metabox for the Activity admin edit screen
    617617 *
    618618 * @param object $item Activity item
    619  * @since 1.6
     619 * @since BuddyPress (1.6)
    620620 */
    621621function bp_activity_admin_edit_metabox_status( $item ) {
    622622?>
     
    671671 * Primary link metabox for the Activity admin edit screen
    672672 *
    673673 * @param object $item Activity item
    674  * @since 1.6
     674 * @since BuddyPress (1.6)
    675675 */
    676676function bp_activity_admin_edit_metabox_link( $item ) {
    677677?>
     
    687687 * User ID metabox for the Activity admin edit screen
    688688 *
    689689 * @param object $item Activity item
    690  * @since 1.6
     690 * @since BuddyPress (1.6)
    691691 */
    692692function bp_activity_admin_edit_metabox_userid( $item ) {
    693693?>
     
    703703 *
    704704 * @global object $bp BuddyPress global settings
    705705 * @param object $item Activity item
    706  * @since 1.6
     706 * @since BuddyPress (1.6)
    707707 */
    708708function bp_activity_admin_edit_metabox_type( $item ) {
    709709        global $bp;
     
    739739 * Primary item ID/Secondary item ID metabox for the Activity admin edit screen
    740740 *
    741741 * @param object $item Activity item
    742  * @since 1.6
     742 * @since BuddyPress (1.6)
    743743 */
    744744function bp_activity_admin_edit_metabox_itemids( $item ) {
    745745?>
     
    761761 *
    762762 * @global BP_Activity_List_Table $bp_activity_list_table Activity screen list table
    763763 * @global string $plugin_page
    764  * @since 1.6
     764 * @since BuddyPress (1.6)
    765765 */
    766766function bp_activity_admin_index() {
    767767        global $bp_activity_list_table, $plugin_page;
     
    886886/**
    887887 * List table class for the Activity component admin page.
    888888 *
    889  * @since 1.6
     889 * @since BuddyPress (1.6)
    890890 */
    891891class BP_Activity_List_Table extends WP_List_Table {
    892892        /**
    893893         * What type of view is being displayed? e.g. "All", "Pending", "Approved", "Spam"...
    894894         *
    895          * @since 1.6
     895         * @since BuddyPress (1.6)
    896896        */
    897897        public $view = 'all';
    898898
    899899        /**
    900900         * How many activity items have been marked as spam.
    901901         *
    902          * @since 1.6
     902         * @since BuddyPress (1.6)
    903903         */
    904904        public $spam_count = 0;
    905905
    906906        /**
    907907         * Store activity-to-user-ID mappings for use in the In Response To column.
    908908         *
    909          * @since 1.6
     909         * @since BuddyPress (1.6)
    910910         */
    911911        protected $activity_user_id = array();
    912912
    913913        /**
    914914         * Constructor
    915915         *
    916          * @since 1.6
     916         * @since BuddyPress (1.6)
    917917         */
    918918        public function __construct() {
    919919
     
    928928        /**
    929929         * Handle filtering of data, sorting, pagination, and any other data-manipulation required prior to rendering.
    930930         *
    931          * @since 1.6
     931         * @since BuddyPress (1.6)
    932932         */
    933933        function prepare_items() {
    934934                $screen = get_current_screen();
     
    10301030         * Get an array of all the columns on the page
    10311031         *
    10321032         * @return array
    1033          * @since 1.6
     1033         * @since BuddyPress (1.6)
    10341034         */
    10351035        function get_column_info() {
    10361036                $this->_column_headers = array(
     
    10451045        /**
    10461046         * Displays a message on screen when no items are found (e.g. no search matches)
    10471047         *
    1048          * @since 1.6
     1048         * @since BuddyPress (1.6)
    10491049         */
    10501050        function no_items() {
    10511051                _e( 'No activities found.', 'buddypress' );
     
    10541054        /**
    10551055         * Outputs the Activity data table
    10561056         *
    1057          * @since 1.6
     1057         * @since BuddyPress (1.6)
    10581058        */
    10591059        function display() {
    10601060                extract( $this->_args );
     
    10881088         * Generates content for a single row of the table
    10891089         *
    10901090         * @param object $item The current item
    1091          * @since 1.6
     1091         * @since BuddyPress (1.6)
    10921092         */
    10931093        function single_row( $item ) {
    10941094                static $row_class = '';
     
    11021102        /**
    11031103         * Get the list of views available on this table (e.g. "all", "spam").
    11041104         *
    1105          * @since 1.6
     1105         * @since BuddyPress (1.6)
    11061106         */
    11071107        function get_views() {
    11081108                $redirect_to = remove_query_arg( array( 'activity_status', 'aid', 'deleted', 'error', 'spammed', 'unspammed', 'updated', ), $_SERVER['REQUEST_URI'] );
     
    11201120         * Get bulk actions
    11211121         *
    11221122         * @return array Key/value pairs for the bulk actions dropdown
    1123          * @since 1.6
     1123         * @since BuddyPress (1.6)
    11241124         */
    11251125        function get_bulk_actions() {
    11261126                $actions = array();
     
    11361136         *
    11371137         * @see WP_List_Table::single_row_columns()
    11381138         * @return array
    1139          * @since 1.6
     1139         * @since BuddyPress (1.6)
    11401140         */
    11411141        function get_columns() {
    11421142                return array(
     
    11511151         * Get the column names for sortable columns
    11521152         *
    11531153         * @return array
    1154          * @since 1.6
     1154         * @since BuddyPress (1.6)
    11551155         * @todo For this to work, BP_Activity_Activity::get() needs updating to supporting ordering by specific fields
    11561156         */
    11571157        function get_sortable_columns() {
     
    11671167         *
    11681168         * @global object $bp BuddyPress global settings
    11691169         * @param string $which 'top' or 'bottom'
    1170          * @since 1.6
     1170         * @since BuddyPress (1.6)
    11711171         */
    11721172        function extra_tablenav( $which ) {
    11731173                global $bp;
     
    12161216         *
    12171217         * @param array $item A singular item (one full row)
    12181218         * @see WP_List_Table::single_row_columns()
    1219          * @since 1.6
     1219         * @since BuddyPress (1.6)
    12201220         */
    12211221        function column_cb( $item ) {
    12221222                printf( '<input type="checkbox" name="aid[]" value="%d" />', (int) $item['id'] );
     
    12271227         *
    12281228         * @param array $item A singular item (one full row)
    12291229         * @see WP_List_Table::single_row_columns()
    1230          * @since 1.6
     1230         * @since BuddyPress (1.6)
    12311231         */
    12321232        function column_author( $item ) {
    12331233                echo '<strong>' . get_avatar( $item['user_id'], '32' ) . ' ' . bp_core_get_userlink( $item['user_id'] ) . '</strong>';
     
    12401240         *
    12411241         * @param array $item A singular item (one full row)
    12421242         * @see WP_List_Table::single_row_columns()
    1243          * @since 1.6
     1243         * @since BuddyPress (1.6)
    12441244         */
    12451245        function column_comment( $item ) {
    12461246                // Determine what type of item (row) we're dealing with
     
    13111311         *
    13121312         * @param array $item A singular item (one full row)
    13131313         * @see WP_List_Table::single_row_columns()
    1314          * @since 1.6
     1314         * @since BuddyPress (1.6)
    13151315         */
    13161316        function column_response( $item ) {
    13171317                // Is $item is a root activity?
     
    13391339         * A wrapper function for the BP_Activity_List_Table to get the specified activity's user ID.
    13401340         *
    13411341         * @param int $activity_id Activity ID to retrieve User ID for
    1342          * @since 1.6
     1342         * @since BuddyPress (1.6)
    13431343         */
    13441344        protected function get_activity_user_id( $activity_id ) {
    13451345                // If there is an existing activity/user ID mapping, just return the user ID.
     
    13731373         *
    13741374         * @param array $tree Source array
    13751375         * @return array Flattened array
    1376          * @since 1.6
     1376         * @since BuddyPress (1.6)
    13771377         */
    13781378        public static function flatten_activity_array( $tree ){
    13791379                foreach ( (array) $tree as $node ) {
  • bp-activity/bp-activity-akismet.php

     
    33 * Akismet support for BuddyPress' Activity Stream
    44 *
    55 * @package BuddyPress
    6  * @since 1.6
     6 * @since BuddyPress (1.6)
    77 * @subpackage Activity
    88 */
    99
     
    1616         *
    1717         * @access protected
    1818         * @var BP_Activity_Activity
    19          * @since 1.6
     19         * @since BuddyPress (1.6)
    2020         */
    2121        protected $last_activity = null;
    2222
    2323        /**
    2424         * Constructor
    2525         *
    26          * @since 1.6
     26         * @since BuddyPress (1.6)
    2727         */
    2828        public function __construct() {
    2929                $this->setup_actions();
     
    3232        /**
    3333         * Hook Akismet into the activity stream
    3434         *
    35          * @since 1.6
     35         * @since BuddyPress (1.6)
    3636         */
    3737        protected function setup_actions() {
    3838                // Add nonces to activity stream lists
     
    6767         * @param array $actions The hover links
    6868         * @param array $activity The activity for the current row being processed
    6969         * @return array The hover links
    70          * @since 1.6
     70         * @since BuddyPress (1.6)
    7171         */
    7272        function comment_row_action( $actions, $activity ) {
    7373                $akismet_result = bp_activity_get_meta( $activity['id'], '_bp_akismet_result' );
     
    114114         * This is used by Akismet to help detect spam activity.
    115115         *
    116116         * @see http://plugins.trac.wordpress.org/ticket/1232
    117          * @since 1.6
     117         * @since BuddyPress (1.6)
    118118         */
    119119        public function add_activity_stream_nonce() {
    120120                $form_id = '_bp_as_nonce';
     
    138138         * @param int $user_id User ID
    139139         * @param int $activity_id Activity ID
    140140         * @see bp_dtheme_post_update()
    141          * @since 1.6
     141         * @since BuddyPress (1.6)
    142142         */
    143143        public function check_member_activity_update( $content, $user_id, $activity_id ) {
    144144                // By default, only handle activity updates and activity comments.
     
    158158         *
    159159         * This function is intended to be used inside the activity stream loop.
    160160         *
    161          * @since 1.6
     161         * @since BuddyPress (1.6)
    162162         */
    163163        public function add_activity_spam_button() {
    164164                if ( !bp_activity_user_can_mark_spam() )
     
    186186         *
    187187         * This function is intended to be used inside the activity stream loop.
    188188         *
    189          * @since 1.6
     189         * @since BuddyPress (1.6)
    190190         */
    191191        public function add_activity_comment_spam_button() {
    192192                if ( !bp_activity_user_can_mark_spam() )
     
    214214         * Get a list of filterable types of activity item that we want Akismet to automatically check for spam.
    215215         *
    216216         * @return array List of activity types
    217          * @since 1.6
     217         * @since BuddyPress (1.6)
    218218         * @static
    219219         */
    220220        public static function get_activity_types() {
     
    226226         *
    227227         * @param BP_Activity_Activity $activity
    228228         * @param string $source Either "by_a_person" (e.g. a person has manually marked the activity as spam) or "by_akismet" (automatically spammed).
    229          * @since 1.6
     229         * @since BuddyPress (1.6)
    230230         */
    231231        public function mark_as_spam( $activity, $source ) {
    232232                // Record this item so we can do some tidyup in BP_Akismet::check_member_activity_update()
     
    240240         *
    241241         * @param BP_Activity_Activity $activity
    242242         * @param string $source Either "by_a_person" (e.g. a person has manually marked the activity as ham) or "by_akismet" (automatically hammed).
    243          * @since 1.6
     243         * @since BuddyPress (1.6)
    244244         */
    245245        public function mark_as_ham( $activity, $source ) {
    246246                // If the activity was, originally, automatically marked as spam by Akismet, run the @mentions filter as it would have been skipped.
     
    255255         *
    256256         * @param BP_Activity_Activity $activity
    257257         * @see http://akismet.com/development/api/#comment-check
    258          * @since 1.6
     258         * @since BuddyPress (1.6)
    259259         * @static
    260260         */
    261261        public static function build_akismet_data_package( $activity ) {
     
    294294         *
    295295         * @param BP_Activity_Activity $activity The activity item to check
    296296         * @see http://akismet.com/development/api/
    297          * @since 1.6
     297         * @since BuddyPress (1.6)
    298298         * @todo Spam counter?
    299299         * @todo Auto-delete old spam?
    300300         */
     
    335335         * Update activity meta after a manual spam change (user initiated)
    336336         *
    337337         * @param BP_Activity_Activity $activity The activity to check
    338          * @since 1.6
     338         * @since BuddyPress (1.6)
    339339         */
    340340        public function update_activity_spam_meta( $activity ) {
    341341                // By default, only handle activity updates and activity comments.
     
    351351         * Update activity meta after a manual ham change (user initiated)
    352352         *
    353353         * @param BP_Activity_Activity $activity The activity to check
    354          * @since 1.6
     354         * @since BuddyPress (1.6)
    355355         */
    356356        public function update_activity_ham_meta( $activity ) {
    357357                // By default, only handle activity updates and activity comments.
     
    367367         * Update activity meta after an automatic spam check (not user initiated)
    368368         *
    369369         * @param BP_Activity_Activity $activity The activity to check
    370          * @since 1.6
     370         * @since BuddyPress (1.6)
    371371         */
    372372        public function update_activity_akismet_meta( $activity ) {
    373373                // Check we're dealing with what was last updated by Akismet
     
    408408         * @param array $activity_data Packet of information to submit to Akismet
    409409         * @param string $check "check" or "submit"
    410410         * @param string $spam "spam" or "ham"
    411          * @since 1.6
     411         * @since BuddyPress (1.6)
    412412         */
    413413        public function send_akismet_request( $activity_data, $check = 'check', $spam = 'spam' ) {
    414414                global $akismet_api_host, $akismet_api_port;
     
    480480         * Filters user agent when sending to Akismet.
    481481         *
    482482         * @param string $user_agent
    483          * @since 1.6
     483         * @since BuddyPress (1.6)
    484484         */
    485485        public function buddypress_ua( $user_agent ) {
    486486                $user_agent = 'BuddyPress/' . bp_get_version() . ' | Akismet/'. constant( 'AKISMET_VERSION' );
     
    491491         * Adds a "History" meta box to the activity edit screen.
    492492         *
    493493         * @param string $screen_action The type of screen that has been requested
    494          * @since 1.6
     494         * @since BuddyPress (1.6)
    495495         */
    496496        function add_history_metabox( $screen_action ) {
    497497                // Only proceed if we're on the edit screen
     
    506506         * History meta box for the Activity admin edit screen
    507507         *
    508508         * @param object $item Activity item
    509          * @since 1.6
     509         * @since BuddyPress (1.6)
    510510         * @todo Update activity meta to allow >1 record with the same key (iterate through $history).
    511511         * @see http://buddypress.trac.wordpress.org/ticket/3907
    512512         */
     
    527527         * @param int $activity_id Activity item ID
    528528         * @param string $message Human-readable description of what's changed
    529529         * @param string $event The type of check we were carrying out
    530          * @since 1.6
     530         * @since BuddyPress (1.6)
    531531         */
    532532        public function update_activity_history( $activity_id = 0, $message = '', $event = '' ) {
    533533                $event = array(
     
    546546         *
    547547         * @param int $activity_id Activity item ID
    548548         * @return array The activity item's Akismet history
    549          * @since 1.6
     549         * @since BuddyPress (1.6)
    550550         */
    551551        public function get_activity_history( $activity_id = 0 ) {
    552552                $history = bp_activity_get_meta( $activity_id, '_bp_akismet_history' );
     
    565565 *
    566566 * @global object $bp BuddyPress global settings
    567567 * @global wpdb $wpdb WordPress database object
    568  * @since 1.6
     568 * @since BuddyPress (1.6)
    569569 */
    570570function bp_activity_akismet_delete_old_metadata() {
    571571        global $bp, $wpdb;
  • bp-activity/bp-activity-cache.php

     
    33/**
    44 * Functions related to the BuddyPress Activity component and the WP Cache
    55 *
    6  * @since 1.6
     6 * @since BuddyPress (1.6)
    77 */
    88
    99// Exit if accessed directly
  • bp-activity/bp-activity-classes.php

     
    297297         * @param string MySQL column sort; ASC or DESC. (Optional; default is DESC)
    298298         * @param bool $display_comments Retrieve an activity item's associated comments or not. (Optional; default is false)
    299299         * @return array
    300          * @since 1.2
     300         * @since BuddyPress (1.2)
    301301         */
    302302        function get_specific( $activity_ids, $max = false, $page = 1, $per_page = 25, $sort = 'DESC', $display_comments = false ) {
    303303                _deprecated_function( __FUNCTION__, '1.5', 'Use BP_Activity_Activity::get() with the "in" parameter instead.' );
     
    445445         * @param array $activities
    446446         * @param bool $spam Optional; 'ham_only' (default), 'spam_only' or 'all'.
    447447         * @return array The updated activities with nested comments
    448          * @since 1.2
     448         * @since BuddyPress (1.2)
    449449         */
    450450        function append_comments( $activities, $spam = 'ham_only' ) {
    451451                global $wpdb;
     
    476476         * @param into $right Right-most node boundary
    477477         * @param bool $spam Optional; 'ham_only' (default), 'spam_only' or 'all'.
    478478         * @return array The updated activities with nested comments
    479          * @since 1.2
     479         * @since BuddyPress (1.2)
    480480         */
    481481        function get_activity_comments( $activity_id, $left, $right, $spam = 'ham_only' ) {
    482482                global $wpdb, $bp;
  • bp-activity/bp-activity-functions.php

     
    659659 * @global object $wpdb
    660660 * @global object $bp BuddyPress global settings
    661661 * @param int $user_id
    662  * @since 1.6
     662 * @since BuddyPress (1.6)
    663663 */
    664664function bp_activity_spam_all_user_data( $user_id = 0 ) {
    665665        global $bp, $wpdb;
     
    710710 * @global object $wpdb
    711711 * @global object $bp BuddyPress global settings
    712712 * @param int $user_id
    713  * @since 1.6
     713 * @since BuddyPress (1.6)
    714714 */
    715715function bp_activity_ham_all_user_data( $user_id = 0 ) {
    716716        global $bp, $wpdb;
     
    759759 * Register the activity stream actions for updates
    760760 *
    761761 * @global object $bp BuddyPress global settings
    762  * @since 1.6
     762 * @since BuddyPress (1.6)
    763763 */
    764764function bp_activity_register_activity_actions() {
    765765        global $bp;
     
    14721472 * Convenience function to control whether the current user is allowed to mark activity items as spam
    14731473 *
    14741474 * @return bool True if user is allowed to mark activity items as spam
    1475  * @since 1.6
     1475 * @since BuddyPress (1.6)
    14761476 * @static
    14771477 */
    14781478function bp_activity_user_can_mark_spam() {
     
    14851485 * @global object $bp BuddyPress global settings
    14861486 * @param BP_Activity_Activity $activity
    14871487 * @param string $source Optional; default is "by_a_person" (e.g. a person has manually marked the activity as spam).
    1488  * @since 1.6
     1488 * @since BuddyPress (1.6)
    14891489 */
    14901490function bp_activity_mark_as_spam( &$activity, $source = 'by_a_person' ) {
    14911491        global $bp;
     
    15211521 * @global object $bp BuddyPress global settings
    15221522 * @param BP_Activity_Activity $activity
    15231523 * @param string $source Optional; default is "by_a_person" (e.g. a person has manually marked the activity as spam).
    1524  * @since 1.6
     1524 * @since BuddyPress (1.6)
    15251525 */
    15261526function bp_activity_mark_as_ham( &$activity, $source = 'by_a_person' ) {
    15271527        global $bp;
  • bp-activity/bp-activity-loader.php

     
    323323        /**
    324324         * Setup the actions
    325325         *
    326          * @since 1.6
     326         * @since BuddyPress (1.6)
    327327         */
    328328         function setup_actions() {
    329329                // Spam prevention
  • bp-blogs/bp-blogs-filters.php

     
    55 *
    66 * @package BuddyPress
    77 * @subpackage Blogs
    8  * @since 1.6
     8 * @since BuddyPress (1.6)
    99 */
    1010
    1111/**
    1212 * Ensures that the 'Create a new site' link at wp-admin/my-sites.php points to the BP blog signup
    1313 *
    14  * @since 1.6
     14 * @since BuddyPress (1.6)
    1515 * @uses apply_filters() Filter bp_blogs_creation_location to alter the returned value
    1616 *
    1717 * @param string $url The original URL (points to wp-signup.php by default)
  • bp-blogs/bp-blogs-functions.php

     
    353353 * Blogs component. This function bumps the priority of the core function, so that we can be sure
    354354 * that the Blogs component is loaded first. See http://buddypress.trac.wordpress.org/ticket/3916
    355355 *
    356  * @since 1.6
     356 * @since BuddyPress (1.6)
    357357 */
    358358function bp_blogs_maybe_add_user_to_blog() {
    359359        if ( ! is_multisite() )
     
    440440 * @param string $new_status New comment status.
    441441 * @param string $old_status Previous comment status.
    442442 * @param object $comment Comment data.
    443  * @since 1.6
     443 * @since BuddyPress (1.6)
    444444 */
    445445function bp_blogs_transition_activity_status( $new_status, $old_status, $comment ) {
    446446        global $bp;
  • bp-blogs/bp-blogs-template.php

     
    511511/**
    512512 * Echo the value of bp_blogs_get_subdomain_base()
    513513 *
    514  * @since 1.6
     514 * @since BuddyPress (1.6)
    515515 */
    516516function bp_blogs_subdomain_base() {
    517517        echo bp_blogs_get_subdomain_base();
     
    520520         * Return the base URL to be displayed when a user chooses an address for a new blog, on
    521521         * a subdomain installation of WordPress MS
    522522         *
    523          * @since 1.6
     523         * @since BuddyPress (1.6)
    524524         * @return str The base URL - eg, 'example.com' for site_url() example.com or www.example.com
    525525         */
    526526        function bp_blogs_get_subdomain_base() {
  • bp-core/admin/bp-core-functions.php

     
    3232 * @global array $_parent_pages
    3333 * @global array $_registered_pages
    3434 * @global array $submenu
    35  * @since 1.6
     35 * @since BuddyPress (1.6)
    3636 */
    3737function bp_core_admin_backpat_menu() {
    3838        global $_parent_pages, $_registered_pages, $submenu;
     
    6565/**
    6666 * Tweak the Settings subnav menu to show only one BuddyPress menu item (Settings > BuddyPress).
    6767 *
    68  * @since 1.6
     68 * @since BuddyPress (1.6)
    6969 */
    7070function bp_core_modify_admin_menu() {
    7171        $page  = bp_core_do_network_admin()  ? 'settings.php' : 'options-general.php';
     
    8585 *
    8686 * @global string $plugin_page
    8787 * @global array $submenu
    88  * @since 1.6
     88 * @since BuddyPress (1.6)
    8989 */
    9090function bp_core_modify_admin_menu_highlight() {
    9191        global $plugin_page, $submenu_file;
     
    101101 * will never appear.
    102102 *
    103103 * @see bp_core_admin_backpat_menu()
    104  * @since 1.6
     104 * @since BuddyPress (1.6)
    105105 * @todo Add convenience links into the markup once new positions are finalised.
    106106 */
    107107function bp_core_admin_backpat_page() {
  • bp-core/admin/bp-core-update.php

     
    657657        /**
    658658         * When upgrading to BP 1.6, prompt the admin to switch to WordPress' Toolbar.
    659659         *
    660          * @since 1.6
     660         * @since BuddyPress (1.6)
    661661         */
    662662        function step_admin_bar() {
    663663        ?>
     
    943943         * When upgrading to BP 1.6, the admin is prompted to switch to WordPress' Toolbar.
    944944         * If they choose not to, record that preference in the options table.
    945945         *
    946          * @since 1.6
     946         * @since BuddyPress (1.6)
    947947         */
    948948        function step_admin_bar_save() {
    949949                if ( isset( $_POST['submit'] ) ) {
  • bp-core/bp-core-cache.php

     
    6060/**
    6161 * Update the metadata cache for the specified objects.
    6262 *
    63  * @since 1.6
     63 * @since BuddyPress (1.6)
    6464 * @global $wpdb WordPress database object for queries.
    6565 * @param array $args See $defaults definition for more details
    6666 * @return mixed Metadata cache for the specified objects, or false on failure.
  • bp-core/bp-core-catchuri.php

     
    523523 * general possible versions of the URL - eg, example.com/groups/mygroup/ instead of
    524524 * example.com/groups/mygroup/home/
    525525 *
    526  * @since 1.6
     526 * @since BuddyPress (1.6)
    527527 * @see BP_Members_Component::setup_globals() where $bp->canonical_stack['base_url'] and
    528528 *   ['component'] may be set
    529529 * @see bp_core_new_nav_item() where $bp->canonical_stack['action'] may be set
     
    576576/**
    577577 * Output rel=canonical header tag for BuddyPress content
    578578 *
    579  * @since 1.6
     579 * @since BuddyPress (1.6)
    580580 */
    581581function bp_rel_canonical() {
    582582        $canonical_url = bp_get_canonical_url();
     
    702702 * This function will be removed in a later version of BuddyPress. Plugins
    703703 * (and plugin authors!) should ignore it.
    704704 *
    705  * @since 1.6.1
     705 * @since BuddyPress (1.6.1)
    706706 *
    707707 * @link http://buddypress.trac.wordpress.org/ticket/4329
    708708 * @link http://buddypress.trac.wordpress.org/ticket/4415
     
    722722 * This function should be considered temporary, and may be removed without
    723723 * notice in future versions of BuddyPress.
    724724 *
    725  * @since 1.6
     725 * @since BuddyPress (1.6)
    726726 */
    727727function _bp_maybe_remove_rel_canonical() {
    728728        if ( ! bp_is_blog_page() && ! is_404() ) {
  • bp-core/bp-core-classes.php

     
    873873 * API to create BuddyPress buttons
    874874 *
    875875 * @package BuddyPress Core
    876  * @since 1.2.6
     876 * @since BuddyPress (1.2.6)
    877877 */
    878878class BP_Button {
    879879        // Button properties
  • bp-core/bp-core-cssjs.php

     
    129129 *
    130130 * Adds AJAX target URL so themes can access the WordPress AJAX functionality.
    131131 *
    132  * @since 1.1
     132 * @since BuddyPress (1.1)
    133133 */
    134134function bp_core_add_ajax_url_js() {
    135135?>
  • bp-core/bp-core-functions.php

     
    254254 * Get the current GMT time to save into the DB
    255255 *
    256256 * @package BuddyPress Core
    257  * @since 1.2.6
     257 * @since BuddyPress (1.2.6)
    258258 */
    259259function bp_core_current_time( $gmt = true ) {
    260260        // Get current time in MYSQL format
  • bp-core/bp-core-moderation.php

     
    44 *
    55 * @package BuddyPress
    66 * @subpackage Core
    7  * @since 1.6
     7 * @since BuddyPress (1.6)
    88 */
    99
    1010// Exit if accessed directly
     
    2020 *
    2121 * @param int $user_id User id to check for flood
    2222 * @return bool True if there is no flooding, true if there is
    23  * @since 1.6
     23 * @since BuddyPress (1.6)
    2424 * @uses current_user_can() To check if the current user can throttle
    2525 * @uses bp_get_option() To get the throttle time
    2626 * @uses get_transient() To get the last posted transient of the ip
     
    5050 * @param string $title The title of the content
    5151 * @param string $content The content being posted
    5252 * @return bool True if test is passed, false if fail
    53  * @since 1.6
     53 * @since BuddyPress (1.6)
    5454 * @uses bp_current_author_ip() To get current user IP address
    5555 * @uses bp_current_author_ua() To get current user agent
    5656 * @uses bp_current_user_can() Allow super admins to bypass blacklist
     
    159159 * @uses bp_current_author_ip() To get current user IP address
    160160 * @uses bp_current_author_ua() To get current user agent
    161161 * @uses bp_current_user_can() Allow super admins to bypass blacklist
    162  * @since 1.6
     162 * @since BuddyPress (1.6)
    163163 */
    164164function bp_core_check_for_blacklist( $user_id = 0, $title = '', $content = '' ) {
    165165
     
    241241 * Get the current-user IP address
    242242 *
    243243 * @return string
    244  * @since 1.6
     244 * @since BuddyPress (1.6)
    245245 */
    246246function bp_core_current_user_ip() {
    247247        $retval = preg_replace( '/[^0-9a-fA-F:., ]/', '', $_SERVER['REMOTE_ADDR'] );
     
    253253 * Get the current-user user-agent
    254254 *
    255255 * @return string
    256  * @since 1.6
     256 * @since BuddyPress (1.6)
    257257 */
    258258function bp_core_current_user_ua() {
    259259
  • bp-core/bp-core-template.php

     
    161161        /**
    162162         * Returns the name of the BP site. Used in RSS headers
    163163         *
    164          * @since 1.6
     164         * @since BuddyPress (1.6)
    165165         */
    166166        function bp_get_site_name() {
    167167                return apply_filters( 'bp_site_name', get_bloginfo( 'name', 'display' ) );
     
    247247 * Generates the basic search form as used in BP-Default's header.
    248248 *
    249249 * @return string HTML <select> element
    250  * @since 1.0
     250 * @since BuddyPress (1.0)
    251251 */
    252252function bp_search_form_type_select() {
    253253
  • bp-core/deprecated/1.5.php

     
    4343 * @package BuddyPress
    4444 * @param int $blog_id optional blog id to test (default current blog)
    4545 * @return bool True if not multisite or $blog_id is main site
    46  * @since 1.2.6
     46 * @since BuddyPress (1.2.6)
    4747 */
    4848function bp_core_is_main_site( $blog_id = '' ) {
    4949        _deprecated_function( __FUNCTION__, '1.5', 'is_main_site()' );
     
    7373 *
    7474 * @deprecated 1.5
    7575 * @deprecated Use add_menu_page().
    76  * @since 1.1
     76 * @since BuddyPress (1.1)
    7777 */
    7878function bp_core_add_admin_menu_page( $args = '' ) {
    7979        global $_registered_pages, $admin_page_hooks, $menu;
     
    251251 *
    252252 * @deprecated 1.5
    253253 * @deprecated Use wp_title()
    254  * @since 1.0
     254 * @since BuddyPress (1.0)
    255255 */
    256256function bp_page_title() {
    257257        echo bp_get_page_title();
     
    262262         *
    263263         * @deprecated 1.5
    264264         * @deprecated Use wp_title()
    265          * @since 1.0
     265         * @since BuddyPress (1.0)
    266266         */
    267267        function bp_get_page_title() {
    268268                _deprecated_function( __FUNCTION__, '1.5', 'wp_title()' );
     
    279279 *
    280280 * @deprecated 1.5
    281281 * @deprecated Use wp_logout_url()
    282  * @since 1.0
     282 * @since BuddyPress (1.0)
    283283 */
    284284function bp_log_out_link() {
    285285        _deprecated_function( __FUNCTION__, '1.5', 'wp_logout_url()' );
     
    440440         * @param string $page_html A list of pages as a dropdown (select list)
    441441         * @return string
    442442         * @see wp_dropdown_pages()
    443          * @since 1.2
     443         * @since BuddyPress (1.2)
    444444         */
    445445        function bp_dtheme_wp_pages_filter( $page_html ) {
    446446                _deprecated_function( __FUNCTION__, '1.5', "No longer required." );
     
    458458         * @param $string $oldvalue Previous value of get_option( 'page_on_front' )
    459459         * @param $string $oldvalue New value of get_option( 'page_on_front' )
    460460         * @return string
    461          * @since 1.2
     461         * @since BuddyPress (1.2)
    462462         */
    463463        function bp_dtheme_page_on_front_update( $oldvalue, $newvalue ) {
    464464                _deprecated_function( __FUNCTION__, '1.5', "No longer required." );
     
    478478         * @deprecated No longer required.
    479479         * @param string $template Absolute path to the page template
    480480         * @return string
    481          * @since 1.2
     481         * @since BuddyPress (1.2)
    482482         */
    483483        function bp_dtheme_page_on_front_template( $template ) {
    484484                _deprecated_function( __FUNCTION__, '1.5', "No longer required." );
     
    493493         *
    494494         * @deprecated 1.5
    495495         * @deprecated No longer required.
    496          * @since 1.2
     496         * @since BuddyPress (1.2)
    497497         */
    498498        function bp_dtheme_fix_get_posts_on_activity_front() {
    499499                _deprecated_function( __FUNCTION__, '1.5', "No longer required." );
     
    509509         * @deprecated No longer required.
    510510         * @param array $posts Posts as retrieved by WP_Query
    511511         * @return array
    512          * @since 1.2.5
     512         * @since BuddyPress (1.2.5)
    513513         */
    514514        function bp_dtheme_fix_the_posts_on_activity_front( $posts ) {
    515515                _deprecated_function( __FUNCTION__, '1.5', "No longer required." );
     
    524524         *
    525525         * @deprecated 1.5
    526526         * @deprecated Enqueue the comment-reply script in your theme's header.php.
    527          * @since 1.2
     527         * @since BuddyPress (1.2)
    528528         */
    529529        function bp_dtheme_add_blog_comments_js() {
    530530                _deprecated_function( __FUNCTION__, '1.5', "Enqueue the comment-reply script in your theme's header.php." );
  • bp-forums/bp-forums-functions.php

     
    345345 * Check to see whether a user has already left this particular reply on a given post.
    346346 * Prevents dupes.
    347347 *
    348  * @since 1.6
     348 * @since BuddyPress (1.6)
    349349 *
    350350 * @param str $text The text of the comment
    351351 * @param int $topic_id The topic id
  • bp-friends/bp-friends-functions.php

     
    230230 * Excludes friends that are already in the group, and banned friends if the
    231231 * user is not a group admin.
    232232 *
    233  * @since 1.0
     233 * @since BuddyPress (1.0)
    234234 * @param int $user_id User ID whose friends to see can be invited
    235235 * @param int $group_id Group to check possible invitations against
    236236 * @return mixed False if no friends, array of users if friends
  • bp-groups/bp-groups-classes.php

     
    10971097         * @global wpdb $wpdb WordPress database object
    10981098         * @param int $user_id
    10991099         * @param int $group_id
    1100          * @since 1.2.6
     1100         * @since BuddyPress (1.2.6)
    11011101         */
    11021102        function check_is_creator( $user_id, $group_id ) {
    11031103                global $bp, $wpdb;
     
    12161216         * @global object $bp BuddyPress global settings
    12171217         * @global wpdb $wpdb WordPress database object
    12181218         * @param int $user_id
    1219          * @since 1.0
     1219         * @since BuddyPress (1.0)
    12201220         * @uses BP_Groups_Member
    12211221         */
    12221222        function delete_all_for_user( $user_id ) {
     
    12481248 *
    12491249 * @package BuddyPress
    12501250 * @subpackage Groups
    1251  * @since 1.1
     1251 * @since BuddyPress (1.1)
    12521252 */
    12531253class BP_Group_Extension {
    12541254        var $name = false;
  • bp-groups/bp-groups-forums.php

     
    2323 * @param string $group_name The group name
    2424 * @param string $group_description The group description
    2525 *
    26  * @since 1.0
     26 * @since BuddyPress (1.0)
    2727 */
    2828function groups_new_group_forum( $group_id = 0, $group_name = '', $group_desc = '' ) {
    2929        global $bp;
     
    5252 *
    5353 * @param int $group_id Group id, passed from groups_details_updated
    5454 *
    55  * @since 1.1
     55 * @since BuddyPress (1.1)
    5656 */
    5757function groups_update_group_forum( $group_id ) {
    5858
     
    8989 * @param mixed $page The page number where the new forum post should reside. Defaults to boolean false.
    9090 * @return mixed The new forum post ID on success. Boolean false on failure.
    9191 *
    92  * @since 1.0
     92 * @since BuddyPress (1.0)
    9393 */
    9494function groups_new_group_forum_post( $post_text, $topic_id, $page = false ) {
    9595        if ( empty( $post_text ) )
     
    137137 * @param int $forum_id The forum ID this forum topic resides in
    138138 * @return mixed The new topic object on success. Boolean false on failure.
    139139 *
    140  * @since 1.0
     140 * @since BuddyPress (1.0)
    141141 */
    142142function groups_new_group_forum_topic( $topic_title, $topic_text, $topic_tags, $forum_id ) {
    143143        if ( empty( $topic_title ) || empty( $topic_text ) )
     
    183183 * @param mixed $topic_tags A comma-delimited string of topic tags. Defaults to boolean false.
    184184 * @return mixed The topic object on success. Boolean false on failure.
    185185 *
    186  * @since 1.1
     186 * @since BuddyPress (1.1)
    187187 */
    188188function groups_update_group_forum_topic( $topic_id, $topic_title, $topic_text, $topic_tags = false ) {
    189189        global $bp;
     
    238238 * @param mixed $page The page number where the new forum post should reside. Defaults to boolean false.
    239239 * @return mixed The forum post ID on success. Boolean false on failure.
    240240 *
    241  * @since 1.1
     241 * @since BuddyPress (1.1)
    242242 */
    243243function groups_update_group_forum_post( $post_id, $post_text, $topic_id, $page = false ) {
    244244        global $bp;
     
    302302 * @param int $topic_id The id of the topic to be deleted
    303303 * @return bool True if the delete routine went through properly
    304304 *
    305  * @since 1.1
     305 * @since BuddyPress (1.1)
    306306 */
    307307function groups_delete_group_forum_topic( $topic_id ) {
    308308        global $bp;
     
    354354 *   function but is passed along to do_action() hooks.
    355355 * @return bool True on success.
    356356 *
    357  * @since 1.1
     357 * @since BuddyPress (1.1)
    358358 */
    359359function groups_delete_group_forum_post( $post_id, $topic_id = false ) {
    360360        global $bp;
     
    383383 * Get a total count of all public topics of a given type, across groups/forums
    384384 *
    385385 * @package BuddyPress
    386  * @since 1.5
     386 * @since BuddyPress (1.5)
    387387 *
    388388 * @param string $type Either 'newest', 'popular', 'unreplied', 'tags'.  Defaults to 'newest'.
    389389 * @return int The topic count
     
    396396 * Get a total count of all topics of a given status, across groups/forums
    397397 *
    398398 * @package BuddyPress
    399  * @since 1.5
     399 * @since BuddyPress (1.5)
    400400 *
    401401 * @param str $status 'public', 'private', 'hidden', 'all' Which group types to count
    402402 * @return int The topic count
  • bp-groups/bp-groups-functions.php

     
    195195 *
    196196 * @global object $bp BuddyPress global settings
    197197 * @param int $group_id
    198  * @since 1.0
     198 * @since BuddyPress (1.0)
    199199 */
    200200function groups_delete_group( $group_id ) {
    201201        global $bp;
     
    265265/**
    266266 * Get a group ID by its slug
    267267 *
    268  * @since 1.6
     268 * @since BuddyPress (1.6)
    269269 *
    270270 * @param string $group_slug The group's slug
    271271 * @return int The ID
     
    501501 *
    502502 * @param int $user_id
    503503 * @param int $group_id
    504  * @since 1.2.6
     504 * @since BuddyPress (1.2.6)
    505505 * @uses BP_Groups_Member
    506506 */
    507507function groups_is_user_creator( $user_id, $group_id ) {
  • bp-groups/bp-groups-template.php

     
    10051005 *
    10061006 * @deprecated 1.5
    10071007 * @deprecated No longer used.
    1008  * @since 1.0
     1008 * @since BuddyPress (1.0)
    10091009 * @todo Remove in 1.4
    10101010 */
    10111011function bp_group_admin_memberlist( $admin_list = false, $group = false ) {
     
    16121612 *
    16131613 * @global BP_Groups_Template $groups_template Groups template object
    16141614 * @param object $group Group to get status message for. Optional; defaults to current group.
    1615  * @since 1.0
     1615 * @since BuddyPress (1.0)
    16161616 */
    16171617function bp_group_status_message( $group = null ) {
    16181618        global $groups_template;
     
    21942194/**
    21952195 * Echoes the current group creation step
    21962196 *
    2197  * @since 1.6
     2197 * @since BuddyPress (1.6)
    21982198 */
    21992199function bp_groups_current_create_step() {
    22002200        echo bp_get_groups_current_create_step();
     
    22022202        /**
    22032203         * Returns the current group creation step. If none is found, returns an empty string
    22042204         *
    2205          * @since 1.6
     2205         * @since BuddyPress (1.6)
    22062206         *
    22072207         * @uses apply_filters() Filter bp_get_groups_current_create_step to modify
    22082208         * @return str $current_create_step
     
    23602360/**
    23612361 * Echoes the current group admin tab slug
    23622362 *
    2363  * @since 1.6
     2363 * @since BuddyPress (1.6)
    23642364 */
    23652365function bp_group_current_admin_tab() {
    23662366        echo bp_get_group_current_admin_tab();
     
    23682368        /**
    23692369         * Returns the current group admin tab slug
    23702370         *
    2371          * @since 1.6
     2371         * @since BuddyPress (1.6)
    23722372         *
    23732373         * @uses apply_filters() Filter bp_get_current_group_admin_tab to modify return value
    23742374         * @return str $tab The current tab's slug
  • bp-members/bp-members-functions.php

     
    849849 * @param obj $user Either the WP_User object or the WP_Error object
    850850 * @return obj If the user is not a spammer, return the WP_User object. Otherwise a new WP_Error object.
    851851 *
    852  * @since 1.1.2
     852 * @since BuddyPress (1.1.2)
    853853 */
    854854function bp_core_boot_spammer( $user ) {
    855855        // check to see if the $user has already failed logging in, if so return $user as-is
     
    12821282 * @param obj $user Either the WP_User object or the WP_Error object
    12831283 * @return obj If the user is not a spammer, return the WP_User object. Otherwise a new WP_Error object.
    12841284 *
    1285  * @since 1.2.2
     1285 * @since BuddyPress (1.2.2)
    12861286 */
    12871287function bp_core_signup_disable_inactive( $user ) {
    12881288        // check to see if the $user has already failed logging in, if so return $user as-is
  • bp-messages/bp-messages-template.php

     
    635635 * Explicitly named function to avoid confusion with public messages.
    636636 *
    637637 * @uses bp_get_send_message_button()
    638  * @since 1.2.6
     638 * @since BuddyPress (1.2.6)
    639639 */
    640640function bp_send_private_message_button() {
    641641        echo bp_get_send_message_button();
  • bp-themes/bp-default/_inc/ajax.php

     
    99 * http://codex.wordpress.org/AJAX_in_Plugins.
    1010 *
    1111 * @package BuddyPress
    12  * @since 1.2
     12 * @since BuddyPress (1.2)
    1313 * @subpackage BP-Default
    1414 */
    1515
  • bp-themes/bp-default/functions.php

     
    2424 *
    2525 * @package BuddyPress
    2626 * @subpackage BP-Default
    27  * @since 1.2
     27 * @since BuddyPress (1.2)
    2828 */
    2929
    3030// Exit if accessed directly
     
    226226 *
    227227 * Referenced via add_custom_image_header() in bp_dtheme_setup().
    228228 *
    229  * @since 1.2
     229 * @since BuddyPress (1.2)
    230230 */
    231231function bp_dtheme_admin_header_style() {
    232232?>
     
    334334 * Referenced via add_custom_image_header() in bp_dtheme_setup().
    335335 *
    336336 * @global WP_Query $post The current WP_Query object for the current post or page
    337  * @since 1.2
     337 * @since BuddyPress (1.2)
    338338 */
    339339function bp_dtheme_header_style() {
    340340        global $post;
     
    453453 * @param array $args Arguments from wp_list_comments() call
    454454 * @param int $depth Comment nesting level
    455455 * @see wp_list_comments()
    456  * @since 1.2
     456 * @since BuddyPress (1.2)
    457457 */
    458458function bp_dtheme_blog_comments( $comment, $args, $depth ) {
    459459        $GLOBALS['comment'] = $comment;
     
    520520 * Return the ID of a page set as the home page.
    521521 *
    522522 * @return false|int ID of page set as the home page
    523  * @since 1.2
     523 * @since BuddyPress (1.2)
    524524 */
    525525function bp_dtheme_page_on_front() {
    526526        if ( 'page' != get_option( 'show_on_front' ) )
     
    538538 * @param BP_Activity_Activity $activity Activity object
    539539 * @package BuddyPress Theme
    540540 * @return string
    541  * @since 1.2.6
     541 * @since BuddyPress (1.2.6)
    542542 */
    543543function bp_dtheme_activity_secondary_avatars( $action, $activity ) {
    544544        switch ( $activity->component ) {
     
    562562/**
    563563 * Show a notice when the theme is activated - workaround by Ozh (http://old.nabble.com/Activation-hook-exist-for-themes--td25211004.html)
    564564 *
    565  * @since 1.2
     565 * @since BuddyPress (1.2)
    566566 */
    567567function bp_dtheme_show_notice() {
    568568        global $pagenow;
  • bp-xprofile/bp-xprofile-caps.php

     
    44 * Roles and capabilities logic for the XProfile component
    55 *
    66 * @package BuddyPress
    7  * @since 1.6
     7 * @since BuddyPress (1.6)
    88 */
    99
    1010// Exit if accessed directly
     
    1313/**
    1414 * Maps XProfile caps to built in WordPress caps
    1515 *
    16  * @since 1.6
     16 * @since BuddyPress (1.6)
    1717 *
    1818 * @param array $caps Capabilities for meta capability
    1919 * @param string $cap Capability name
  • bp-xprofile/bp-xprofile-classes.php

     
    287287        /**
    288288         * Fetch the field visibility level for the fields returned by the query
    289289         *
    290          * @since 1.6
     290         * @since BuddyPress (1.6)
    291291         *
    292292         * @param int $user_id The profile owner's user_id
    293293         * @param array $fields The database results returned by the get() query
     
    323323        /**
    324324         * Fetch the admin-set preferences for all fields
    325325         *
    326          * @since 1.6
     326         * @since BuddyPress (1.6)
    327327         *
    328328         * @return array $default_visibility_levels An array, keyed by field_id, of default
    329329         *   visibility level + allow_custom (whether the admin allows this field to be set by user)
  • bp-xprofile/bp-xprofile-cssjs.php

     
    2929/**
    3030 * Enqueue the jQuery libraries for handling drag/drop/sort
    3131 *
    32  * @since BuddyPres (1.5)
     32 * @since BuddyPress (1.5)
    3333 */
    3434function xprofile_add_admin_js() {
    3535        if ( !empty( $_GET['page'] ) && strpos( $_GET['page'], 'bp-profile-setup' ) !== false ) {
  • bp-xprofile/bp-xprofile-functions.php

     
    460460/**
    461461 * Syncs the standard built in WordPress profile data to XProfile.
    462462 *
    463  * @since 1.2.4
     463 * @since BuddyPress (1.2.4)
    464464 * @package BuddyPress Core
    465465 */
    466466function xprofile_sync_bp_profile( &$errors, $update, &$user ) {
     
    648648 * profile viewer). Then, based on that relationship, we query for the set of fields that should
    649649 * be excluded from the profile loop.
    650650 *
    651  * @since 1.6
     651 * @since BuddyPress (1.6)
    652652 * @see BP_XProfile_Group::get()
    653653 * @uses apply_filters() Filter bp_xprofile_get_hidden_fields_for_user to modify visibility levels,
    654654 *   or if you have added your own custom levels
     
    700700/**
    701701 * Fetch an array of the xprofile fields that a given user has marked with certain visibility levels
    702702 *
    703  * @since 1.6
     703 * @since BuddyPress (1.6)
    704704 * @see bp_xprofile_get_hidden_fields_for_user()
    705705 *
    706706 * @param int $user_id The id of the profile owner
  • bp-xprofile/bp-xprofile-loader.php

     
    2626         * The acceptable visibility levels for xprofile fields.
    2727         *
    2828         * @see bp_xprofile_get_visibility_levels()
    29          * @since 1.6
     29         * @since BuddyPress (1.6)
    3030         */
    3131        var $visibility_levels = array();
    3232
  • bp-xprofile/bp-xprofile-template.php

     
    398398 * 'radio', 'checkbox', and 'datebox'.
    399399 *
    400400 * @package BuddyPress Xprofile
    401  * @since 1.1
     401 * @since BuddyPress (1.1)
    402402 *
    403403 * @uses bp_get_the_profile_field_options()
    404404 *
     
    414414         * 'radio', 'checkbox', and 'datebox'.
    415415         *
    416416         * @package BuddyPress Xprofile
    417          * @since 1.1
     417         * @since BuddyPress (1.1)
    418418         *
    419419         * @uses BP_XProfile_Field::get_children()
    420420         * @uses BP_XProfile_ProfileData::get_value_byid()