WordPress.org

Make WordPress Core

Changeset 18854


Ignore:
Timestamp:
10/01/11 03:21:36 (3 years ago)
Author:
koopersmith
Message:

Properly print per-page options. see #18690, [18853].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/screen.php

    r18853 r18854  
    923923        <div class='screen-options'> 
    924924            <?php if ( !empty($per_page_label) ): ?> 
    925                 <input type='text' class='screen-per-page' name='wp_screen_options[value]' id='$option' maxlength='3' value='$per_page' /> <label for='$option'>$per_page_label</label> 
     925                <input type='text' class='screen-per-page' name='wp_screen_options[value]' 
     926                    id='<?php echo esc_attr( $option ); ?>' maxlength='3' 
     927                    value='<?php echo esc_attr( $per_page ); ?>' /> 
     928                <label for='<?php echo esc_attr( $option ); ?>'> 
     929                    <?php echo esc_html( $per_page_label ); ?> 
     930                </label> 
    926931            <?php endif; 
    927932 
Note: See TracChangeset for help on using the changeset viewer.