Skip to:
Content

bbPress.org

Changeset 4260


Ignore:
Timestamp:
10/19/2012 09:53:31 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Suggest:

  • First pass at adding autocomplete to forum and topic ID's.
  • Adds ajax.php to bbp-includes/admin/.
  • Updates metabox inputs back to type 'text'.
  • @todo phpdoc and inline doc, and nonce checks.
  • See #1901.
Location:
trunk/bbp-includes/admin
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bbp-includes/admin/admin.php

    r4250 r4260  
    9999                require( $this->admin_dir . 'replies.php'   );
    100100                require( $this->admin_dir . 'users.php'     );
     101                require( $this->admin_dir . 'ajax.php'      );
    101102        }
    102103
  • trunk/bbp-includes/admin/metaboxes.php

    r4259 r4260  
    299299                <strong class="label"><?php _e( 'Parent:', 'bbpress' ); ?></strong>
    300300                <label class="screen-reader-text" for="parent_id"><?php _e( 'Forum Parent', 'bbpress' ); ?></label>
    301                 <input name="parent_id" id="parent_id" type="number" step="1" value="<?php echo esc_attr( $post_parent ); ?>" />
     301                <input name="parent_id" id="bbp_forum_id" value="<?php echo esc_attr( $post_parent ); ?>" />
    302302        </p>
    303303
     
    341341        <p>
    342342                <label class="screen-reader-text" for="parent_id"><?php _e( 'Forum', 'bbpress' ); ?></label>
    343                 <input name="parent_id" id="parent_id" type="number" step="1" value="<?php bbp_topic_forum_id( $post_id ); ?>" />
     343                <input name="parent_id" id="bbp_forum_id" type="text" value="<?php bbp_topic_forum_id( $post_id ); ?>" />
    344344        </p>
    345345
     
    377377                <p>
    378378                        <label class="screen-reader-text" for="bbp_forum_id"><?php _e( 'Forum', 'bbpress' ); ?></label>
    379                         <input name="bbp_forum_id" id="bbp_forum_id" type="number" step="1" value="<?php echo esc_attr( $reply_forum_id ); ?>" />
     379                        <input name="bbp_forum_id" id="bbp_forum_id" type="text" value="<?php echo esc_attr( $reply_forum_id ); ?>" />
    380380                </p>
    381381
     
    386386        <p>
    387387                <label class="screen-reader-text" for="parent_id"><?php _e( 'Topic', 'bbpress' ); ?></label>
    388                 <input name="parent_id" id="parent_id" type="number" step="1" value="<?php echo esc_attr( $reply_topic_id ); ?>" />
     388                <input name="parent_id" id="bbp_topic_id" type="text" value="<?php echo esc_attr( $reply_topic_id ); ?>" />
    389389        </p>
    390390
Note: See TracChangeset for help on using the changeset viewer.