Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/26/2015 03:48:22 PM (9 years ago)
Author:
djpaul
Message:

Activity, Groups: fix styling compatibility problems introduced by WordPress 4.3.

Fixes #6465 (2.3 branch). Props r-a-y, mercime.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/src/bp-groups/bp-groups-admin.php

    r10007 r10066  
    14791479
    14801480    /**
     1481     * Override WP_List_Table::row_actions().
     1482     *
     1483     * Basically a duplicate of the row_actions() method, but removes the
     1484     * unnecessary <button> addition.
     1485     *
     1486     * @since 2.3.3
     1487     * @access protected
     1488     *
     1489     * @param array $actions The list of actions
     1490     * @param bool $always_visible Whether the actions should be always visible
     1491     * @return string
     1492     */
     1493    protected function row_actions( $actions, $always_visible = false ) {
     1494        $action_count = count( $actions );
     1495        $i = 0;
     1496
     1497        if ( !$action_count )
     1498            return '';
     1499
     1500        $out = '<div class="' . ( $always_visible ? 'row-actions visible' : 'row-actions' ) . '">';
     1501        foreach ( $actions as $action => $link ) {
     1502            ++$i;
     1503            ( $i == $action_count ) ? $sep = '' : $sep = ' | ';
     1504            $out .= "<span class='$action'>$link$sep</span>";
     1505        }
     1506        $out .= '</div>';
     1507
     1508        return $out;
     1509    }
     1510
     1511    /**
    14811512     * Markup for the Checkbox column.
    14821513     *
Note: See TracChangeset for help on using the changeset viewer.