Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/19/2016 03:46:29 AM (9 years ago)
Author:
boonebgorges
Message:

Pass parsed function parameters to a number of template filters.

The template filters in question are ones that get their main context from
a template global (say, $members_template), but get auxiliary information
about how to build markup from the function params. As such, it's useful to
have these parameters available via filter.

Props Offereins.
See #6997.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-blogs/bp-blogs-template.php

    r10783 r10785  
    632632         *
    633633         * @since 1.2.0
     634         * @since 2.6.0 Added the `$r` parameter.
    634635         *
    635636         * @param string $retval HTML markup for the latest post.
    636          */
    637         return apply_filters( 'bp_get_blog_latest_post', $retval );
     637         * @param array  $r      Array of parsed arguments.
     638         */
     639        return apply_filters( 'bp_get_blog_latest_post', $retval, $r );
    638640    }
    639641
Note: See TracChangeset for help on using the changeset viewer.