Ticket #5068: 5068.diff
File 5068.diff, 980 bytes (added by , 11 years ago) |
---|
-
bp-activity/bp-activity-admin.php
940 940 'ajax' => false, 941 941 'plural' => 'activities', 942 942 'singular' => 'activity', 943 'screen' => get_current_screen() 943 944 ) ); 944 945 } 945 946 … … 949 950 * @since BuddyPress (1.6) 950 951 */ 951 952 function prepare_items() { 952 $screen = get_current_screen();953 953 954 954 // Option defaults 955 955 $filter = array(); … … 962 962 $page = $this->get_pagenum(); 963 963 964 964 // Set per page from the screen options 965 $per_page = $this->get_items_per_page( str_replace( '-', '_', "{$ screen->id}_per_page" ) );965 $per_page = $this->get_items_per_page( str_replace( '-', '_', "{$this->screen->id}_per_page" ) ); 966 966 967 967 // Check if we're on the "Spam" view 968 968 if ( !empty( $_REQUEST['activity_status'] ) && 'spam' == $_REQUEST['activity_status'] ) {