WordPress.org

Making WordPress.org

Changeset 7482


Ignore:
Timestamp:
07/19/2018 08:19:38 PM (2 years ago)
Author:
Otto42
Message:

Support Forums: Correct arguments for function to avoid warnings being thrown. Fixes #3724. props Clorith

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-moderators.php

    r5950 r7482  
    980980     * @param string $link Link HTML.
    981981     * @param array  $r    Parsed arguments.
    982      * @param array  $args Raw arguments.
     982     * @param array  $args Optional. Raw arguments.
    983983     * @return string Filtered link.
    984984     */
    985     public function convert_toggles_to_actions( $link, $r, $args ) {
     985    public function convert_toggles_to_actions( $link, $r, $args = array() ) {
    986986        if ( false !== strpos( $link, 'bbp_toggle_topic_close' ) ) {
    987987            $action = ( bbp_is_topic_closed( $r['id'] ) ) ? 'wporg_bbp_open_topic' : 'wporg_bbp_close_topic';
Note: See TracChangeset for help on using the changeset viewer.