WordPress.org

Making WordPress.org

Ticket #3724: 3724.patch

File 3724.patch, 1.0 KB (added by Clorith, 2 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-moderators.php

     
    979979         *
    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';
    988988                        $link   = str_replace( 'bbp_toggle_topic_close', $action, $link );