Skip to:
Content

BuddyPress.org

Changeset 10131


Ignore:
Timestamp:
09/23/2015 09:04:35 PM (9 years ago)
Author:
r-a-y
Message:

Admin: Set row_actions() method to public for compatibility with older versions of WordPress.

Fixes a fatal error for those still using WordPress < 4.0.

Props johnjamesjacoby, imath.

Anti-props r-a-y.

See #6606 (trunk).

Location:
trunk/src
Files:
2 edited

Legend:

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

    r10127 r10131  
    14531453     *
    14541454     * @since 2.3.3
    1455      * @access protected
     1455     * @since 2.3.4 Visibility set to public for compatibility with WP < 4.0.0.
    14561456     *
    14571457     * @param array $actions The list of actions
     
    14591459     * @return string
    14601460     */
    1461     protected function row_actions( $actions, $always_visible = false ) {
     1461    public function row_actions( $actions, $always_visible = false ) {
    14621462        $action_count = count( $actions );
    14631463        $i = 0;
  • trunk/src/bp-groups/bp-groups-admin.php

    r10127 r10131  
    15011501     *
    15021502     * @since 2.3.3
    1503      * @access protected
     1503     * @since 2.3.4 Visibility set to public for compatibility with WP < 4.0.0.
    15041504     *
    15051505     * @param array $actions The list of actions
     
    15071507     * @return string
    15081508     */
    1509     protected function row_actions( $actions, $always_visible = false ) {
     1509    public function row_actions( $actions, $always_visible = false ) {
    15101510        $action_count = count( $actions );
    15111511        $i = 0;
Note: See TracChangeset for help on using the changeset viewer.