Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/20/2015 04:20:34 PM (11 years ago)
Author:
johnjamesjacoby
Message:

All: ensure all URLs are escaped (trunk) and cleanup some phpdoc

Also introduce bbp_dropdown class for dropdowns.

File:
1 edited

Legend:

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

    r5676 r5691  
    16841684
    16851685        // Get the reply to use it's ID and post_parent
    1686         $reply = bbp_get_reply( bbp_get_reply_id( $r['id'] ) );
     1686        $reply = bbp_get_reply( $r['id'] );
    16871687
    16881688        // Bail if no reply or user cannot reply
     
    19721972        ), 'get_reply_edit_link' );
    19731973
    1974         $reply = bbp_get_reply( bbp_get_reply_id( $r['id'] ) );
     1974        $reply = bbp_get_reply( $r['id'] );
    19751975
    19761976        // Bypass check if user has caps
     
    20242024        global $wp_rewrite;
    20252025
    2026         $reply = bbp_get_reply( bbp_get_reply_id( $reply_id ) );
     2026        $reply = bbp_get_reply( $reply_id );
    20272027        if ( empty( $reply ) ) {
    20282028            return;
     
    20992099        ), 'get_reply_trash_link' );
    21002100
    2101         $reply = bbp_get_reply( bbp_get_reply_id( $r['id'] ) );
     2101        $reply = bbp_get_reply( $r['id'] );
    21022102
    21032103        if ( empty( $reply ) || ! current_user_can( 'delete_reply', $reply->ID ) ) {
     
    21702170        ), 'get_reply_spam_link' );
    21712171
    2172         $reply = bbp_get_reply( bbp_get_reply_id( $r['id'] ) );
     2172        $reply = bbp_get_reply( $r['id'] );
    21732173
    21742174        if ( empty( $reply ) || ! current_user_can( 'moderate', $reply->ID ) ) {
     
    23672367        ), 'get_reply_approve_link' );
    23682368
    2369         $reply = bbp_get_reply( bbp_get_reply_id( $r['id'] ) );
     2369        $reply = bbp_get_reply( $r['id'] );
    23702370
    23712371        if ( empty( $reply ) || ! current_user_can( 'moderate', $reply->ID ) ) {
     
    26742674            'show_none'    => sprintf( esc_attr__( '%1$s - %2$s', 'bbpress' ), $topic_id, bbp_get_topic_title( $topic_id ) ),
    26752675            'select_id'    => 'bbp_reply_to',
     2676            'select_class' => 'bbp_dropdown',
    26762677            'exclude'      => $reply_id,
    26772678            'selected'     => $reply_to,
     
    27912792        // Parse arguments against default values
    27922793        $r = bbp_parse_args( $args, array(
    2793             'select_id' => 'bbp_reply_status',
    2794             'tab'       => false,
    2795             'reply_id'  => 0,
    2796             'selected'  => false
     2794            'select_id'    => 'bbp_reply_status',
     2795            'select_class' => 'bbp_dropdown',
     2796            'tab'          => false,
     2797            'reply_id'     => 0,
     2798            'selected'     => false
    27972799        ), 'reply_status_dropdown' );
    27982800
     
    28252827        ob_start(); ?>
    28262828
    2827         <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ); ?>_select"<?php echo $tab; ?>>
     2829        <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ); ?>_select" class="<?php echo esc_attr( $r['select_class'] ); ?>"<?php echo $tab; ?>>
    28282830
    28292831            <?php foreach ( bbp_get_reply_statuses( $r['reply_id'] ) as $key => $label ) : ?>
Note: See TracChangeset for help on using the changeset viewer.