Skip to:
Content

BuddyPress.org

Changeset 7473


Ignore:
Timestamp:
10/24/2013 12:15:01 AM (11 years ago)
Author:
boonebgorges
Message:

Avoid PHP notice when leaving activity comments in Activity Admin.

Fixes #5068

Props imath

File:
1 edited

Legend:

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

    r7472 r7473  
    965965            'plural'   => 'activities',
    966966            'singular' => 'activity',
     967            'screen'   => get_current_screen(),
    967968        ) );
    968969    }
     
    974975     */
    975976    function prepare_items() {
    976         $screen = get_current_screen();
    977977
    978978        // Option defaults
     
    987987
    988988        // Set per page from the screen options
    989         $per_page = $this->get_items_per_page( str_replace( '-', '_', "{$screen->id}_per_page" ) );
     989        $per_page = $this->get_items_per_page( str_replace( '-', '_', "{$this->screen->id}_per_page" ) );
    990990
    991991        // Check if we're on the "Spam" view
Note: See TracChangeset for help on using the changeset viewer.