Skip to:
Content

bbPress.org

Changeset 6800


Ignore:
Timestamp:
04/07/2018 03:32:25 AM (6 years ago)
Author:
netweb
Message:

Admin: Remove deprecated screen_icon() calls.

See #2538. Fixes #3198. (2.5 branch).

Location:
branches/2.5/includes/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/includes/admin/settings.php

    r6120 r6800  
    12451245 * @since bbPress (r2643)
    12461246 *
    1247  * @uses screen_icon() To display the screen icon
    12481247 * @uses settings_fields() To output the hidden fields for the form
    12491248 * @uses do_settings_sections() To output the settings sections
     
    12531252
    12541253    <div class="wrap">
    1255 
    1256         <?php screen_icon(); ?>
    12571254
    12581255        <h2><?php esc_html_e( 'Forums Settings', 'bbpress' ) ?></h2>
     
    14961493 * The main settings page
    14971494 *
    1498  * @uses screen_icon() To display the screen icon
    14991495 * @uses settings_fields() To output the hidden fields for the form
    15001496 * @uses do_settings_sections() To output the settings sections
     
    15041500
    15051501    <div class="wrap">
    1506 
    1507         <?php screen_icon( 'tools' ); ?>
    15081502
    15091503        <h2 class="nav-tab-wrapper"><?php bbp_tools_admin_tabs( esc_html__( 'Import Forums', 'bbpress' ) ); ?></h2>
  • branches/2.5/includes/admin/tools.php

    r5374 r6800  
    2222 * @uses wp_cache_flush() To flush the cache
    2323 * @uses do_action() Calls 'admin_notices' to display the notices
    24  * @uses screen_icon() To display the screen icon
    2524 * @uses wp_nonce_field() To add a hidden nonce field
    2625 */
     
    2928
    3029    <div class="wrap">
    31 
    32         <?php screen_icon( 'tools' ); ?>
    3330
    3431        <h2 class="nav-tab-wrapper"><?php bbp_tools_admin_tabs( __( 'Repair Forums', 'bbpress' ) ); ?></h2>
     
    501498        return array( 1, sprintf( $statement, $result ) );
    502499    }
    503  
     500
    504501    // Recalculate the metas key _bbp_reply_count and _bbp_total_reply_count for each forum
    505502    $forums = get_posts( array( 'post_type' => bbp_get_forum_post_type(), 'numberposts' => -1 ) );
     
    11501147    // Delete cases where `_bbp_reply_to` was accidentally set to itself
    11511148    if ( is_wp_error( $wpdb->query( "DELETE FROM `{$wpdb->postmeta}` WHERE `meta_key` = '_bbp_reply_to' AND `post_id` = `meta_value`;" ) ) ) {
    1152         return array( 1, sprintf( $statement, $result ) ); 
     1149        return array( 1, sprintf( $statement, $result ) );
    11531150    }
    11541151
     
    11961193 * @uses check_admin_referer() To verify the nonce and the referer
    11971194 * @uses do_action() Calls 'admin_notices' to display the notices
    1198  * @uses screen_icon() To display the screen icon
    11991195 * @uses wp_nonce_field() To add a hidden nonce field
    12001196 */
     
    12031199
    12041200    <div class="wrap">
    1205 
    1206         <?php screen_icon( 'tools' ); ?>
    12071201
    12081202        <h2 class="nav-tab-wrapper"><?php bbp_tools_admin_tabs( __( 'Reset Forums', 'bbpress' ) ); ?></h2>
Note: See TracChangeset for help on using the changeset viewer.