Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/25/2015 03:07:14 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Topics: sanity check $_REQUEST and introduce list-table methods for reply table-navigation.

This changeset fixes a potential debug notice introduced in r5886, and removes unused functionality inherited from WP_List_Table.

Fixes #2842. See #2587.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/metaboxes.php

    r5886 r5930  
    569569    }
    570570
     571    // Look for pagination value
     572    $page = isset( $_REQUEST['page'] )
     573        ? (int) $_REQUEST['page']
     574        : 0;
     575
    571576    // Load up the list table
    572577    $replies_list_table = new BBP_Topic_Replies_List_Table();
     
    574579
    575580    <form id="bbp-topic-replies" method="get">
    576         <input type="hidden" name="page" value="<?php echo esc_attr( $_REQUEST['page'] ); ?>" />
     581        <input type="hidden" name="page" value="<?php echo esc_attr( $page ); ?>" />
    577582
    578583        <?php $replies_list_table->display(); ?>
Note: See TracChangeset for help on using the changeset viewer.