WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/07/2010 12:01:52 AM (10 years ago)
Author:
ryan
Message:

Deprecate argument. Never fallback to options table for user option requests. Props nacin. fixes #11615

File:
1 edited

Legend:

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

    r12597 r12616  
    984984function get_hidden_columns($page) {
    985985    $page = str_replace('.php', '', $page);
    986     return (array) get_user_option( 'manage-' . $page . '-columns-hidden', 0, false );
     986    return (array) get_user_option( 'manage-' . $page . '-columns-hidden' );
    987987}
    988988
     
    29882988    do {
    29892989        // Grab the ones the user has manually sorted. Pull them out of their previous context/priority and into the one the user chose
    2990         if ( !$already_sorted && $sorted = get_user_option( "meta-box-order_$page", 0, false ) ) {
     2990        if ( !$already_sorted && $sorted = get_user_option( "meta-box-order_$page" ) ) {
    29912991            foreach ( $sorted as $box_context => $ids )
    29922992                foreach ( explode(',', $ids) as $id )
     
    30823082
    30833083function get_hidden_meta_boxes($page) {
    3084     $hidden = (array) get_user_option( "meta-box-hidden_$page", 0, false );
     3084    $hidden = (array) get_user_option( "meta-box-hidden_$page" );
    30853085
    30863086    // Hide slug boxes by default
     
    37383738
    37393739    $option = str_replace( '-', '_', "${screen}_per_page" );
    3740     $per_page = (int) get_user_option( $option, 0, false );
     3740    $per_page = (int) get_user_option( $option );
    37413741    if ( empty( $per_page ) || $per_page < 1 ) {
    37423742        if ( 'plugins' == $screen )
Note: See TracChangeset for help on using the changeset viewer.