Skip to:
Content

BuddyPress.org

Changeset 10130


Ignore:
Timestamp:
09/23/2015 09:02:11 PM (11 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.

Fixes #6606 (2.3-branch).

Location:
branches/2.3/src
Files:
2 edited

Legend:

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

    r10066 r10130  
    14201420         *
    14211421         * @since 2.3.3
    1422          * @access protected
     1422         * @since 2.3.4 Visibility set to public for compatibility with WP < 4.0.0.
    14231423         *
    14241424         * @param array $actions The list of actions
     
    14261426         * @return string
    14271427         */
    1428         protected function row_actions( $actions, $always_visible = false ) {
     1428        public function row_actions( $actions, $always_visible = false ) {
    14291429                $action_count = count( $actions );
    14301430                $i = 0;
  • branches/2.3/src/bp-groups/bp-groups-admin.php

    r10066 r10130  
    14851485         *
    14861486         * @since 2.3.3
    1487          * @access protected
     1487         * @since 2.3.4 Visibility set to public for compatibility with WP < 4.0.0.
    14881488         *
    14891489         * @param array $actions The list of actions
     
    14911491         * @return string
    14921492         */
    1493         protected function row_actions( $actions, $always_visible = false ) {
     1493        public function row_actions( $actions, $always_visible = false ) {
    14941494                $action_count = count( $actions );
    14951495                $i = 0;
Note: See TracChangeset for help on using the changeset viewer.