Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/22/2021 03:16:06 AM (3 years ago)
Author:
espellcaste
Message:

Marking deprecated query classes, their methods, arguments as deprecated in the BP_Friends_Friendship and BP_Friends_Friendship classes.

Props imath

Fixes #8554 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/classes/class-bp-activity-activity.php

    r12604 r13086  
    384384
    385385        // Backward compatibility with old method of passing arguments.
    386         if ( !is_array( $args ) || count( $function_args ) > 1 ) {
     386        if ( ! is_array( $args ) || count( $function_args ) > 1 ) {
    387387            _deprecated_argument(
    388388                __METHOD__,
     
    390390                sprintf(
    391391                    /* translators: 1: the name of the method. 2: the name of the file. */
    392                     __( 'Arguments passed to %1$s should be in an associative array. See the inline documentation at %2$s for more details.', 'buddypress' ),
     392                    esc_html__( 'Arguments passed to %1$s should be in an associative array. See the inline documentation at %2$s for more details.', 'buddypress' ),
    393393                    __METHOD__,
    394394                    __FILE__
     
    11561156     */
    11571157    public static function get_specific( $activity_ids, $max = false, $page = 1, $per_page = 25, $sort = 'DESC', $display_comments = false ) {
    1158         _deprecated_function( __FUNCTION__, '1.5', 'Use BP_Activity_Activity::get() with the "in" parameter instead.' );
     1158        _deprecated_function(
     1159            __FUNCTION__,
     1160            '1.5',
     1161            'Use BP_Activity_Activity::get() with the "in" parameter instead.'
     1162        );
     1163
    11591164        return BP_Activity_Activity::get( $max, $page, $per_page, $sort, false, false, $display_comments, false, false, $activity_ids );
    11601165    }
Note: See TracChangeset for help on using the changeset viewer.