Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/10/2014 11:21:48 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Deprecate tabindex functions and their usages. Props joedolson. Fixes #2714.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/common/template.php

    r5559 r5561  
    13211321 *
    13221322 * @since bbPress (r2810)
    1323  *
     1323 * @deprecated since version 2.6
     1324 * @link https://bbpress.trac.wordpress.org/attachment/ticket/2714 Trac Ticket
    13241325 * @param int $auto_increment Optional. Default true. Set to false to prevent
    13251326 *                             increment
     
    13371338         *
    13381339         * @since bbPress (r2810)
    1339          *
     1340         * @deprecated bbPress (r5560)
     1341         * @link https://bbpress.trac.wordpress.org/attachment/ticket/2714 Trac Ticket
    13401342         * @uses apply_filters Allows return value to be filtered
    13411343         * @param int $auto_increment Optional. Default true. Set to false to
     
    13891391         *             {@link BBP_Walker_Dropdown}
    13901392         *  - select_id: ID of the select box. Defaults to 'bbp_forum_id'
    1391          *  - tab: Tabindex value. False or integer
     1393         *  - tab: Deprecated. Tabindex value. False or integer
    13921394         *  - options_only: Show only <options>? No <select>?
    13931395         *  - show_none: Boolean or String __( '(No Forum)', 'bbpress' )
     
    14291431                        // Output-related
    14301432                        'select_id'          => 'bbp_forum_id',
    1431                         'tab'                => bbp_get_tab_index(),
     1433                        'tab'                => false,
    14321434                        'options_only'       => false,
    14331435                        'show_none'          => false,
     
    17741776                        'media_buttons'     => false,
    17751777                        'textarea_rows'     => '12',
    1776                         'tabindex'          => bbp_get_tab_index(),
     1778                        'tabindex'          => false,
    17771779                        'tabfocus_elements' => 'bbp_topic_title,bbp_topic_tags',
    17781780                        'editor_class'      => 'bbp-the-content',
     
    18361838                 * escaping the editable output, mucking up existing content.
    18371839                 */
    1838                 else : ?>
    1839 
    1840                         <textarea id="bbp_<?php echo esc_attr( $r['context'] ); ?>_content" class="<?php echo esc_attr( $r['editor_class'] ); ?>" name="bbp_<?php echo esc_attr( $r['context'] ); ?>_content" cols="60" rows="<?php echo esc_attr( $r['textarea_rows'] ); ?>" tabindex="<?php echo esc_attr( $r['tabindex'] ); ?>"><?php echo $post_content; ?></textarea>
     1840                else :
     1841
     1842                        // Setup the tab index attribute
     1843                        $tab = !empty( $r['tab'] ) ? ' tabindex="' . intval( $r['tab'] ) . '"' : ''; ?>
     1844
     1845                        <textarea id="bbp_<?php echo esc_attr( $r['context'] ); ?>_content" class="<?php echo esc_attr( $r['editor_class'] ); ?>" name="bbp_<?php echo esc_attr( $r['context'] ); ?>_content" cols="60" rows="<?php echo esc_attr( $r['textarea_rows'] ); ?>" <?php echo $tab; ?>><?php echo $post_content; ?></textarea>
    18411846
    18421847                <?php endif;
Note: See TracChangeset for help on using the changeset viewer.