Changeset 2417
- Timestamp:
- 04/03/2010 03:31:10 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bb-admin/options-writing.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bb-admin/options-writing.php
r2295 r2417 3 3 require_once('admin.php'); 4 4 5 if ( 'post' == strtolower( $_SERVER['REQUEST_METHOD'] ) && $_POST['action'] == 'update' ) {5 if ( 'post' == strtolower( $_SERVER['REQUEST_METHOD'] ) && $_POST['action'] == 'update' ) { 6 6 7 7 bb_check_admin_referer( 'options-writing-update' ); 8 8 9 9 // Deal with xmlrpc checkbox when it isn't checked 10 if ( !isset($_POST['enable_xmlrpc'])) {10 if ( !isset( $_POST['enable_xmlrpc'] ) ) { 11 11 $_POST['enable_xmlrpc'] = false; 12 12 } 13 13 14 14 foreach ( (array) $_POST as $option => $value ) { 15 if ( !in_array( $option, array( '_wpnonce', '_wp_http_referer', 'action', 'submit') ) ) {15 if ( !in_array( $option, array( '_wpnonce', '_wp_http_referer', 'action', 'submit' ) ) ) { 16 16 $option = trim( $option ); 17 17 $value = is_array( $value ) ? $value : trim( $value ); … … 25 25 } 26 26 27 $goback = add_query_arg( 'updated', 'true', wp_get_referer());28 bb_safe_redirect( $goback);27 $goback = add_query_arg( 'updated', 'true', wp_get_referer() ); 28 bb_safe_redirect( $goback ); 29 29 exit; 30 30 } … … 40 40 'after' => __( 'minutes' ), 41 41 'note' => __( 'A user can edit a post for this many minutes after submitting.' ), 42 ), 43 'throttle_time' => array( 44 'title' => __( 'Throttle time' ), 45 'class' => 'short', 46 'after' => __( 'seconds' ), 47 'note' => __( 'Users must wait this many seconds between posts. By default, moderators, administrators and keymasters are not throttled.' ) 42 48 ) 43 49 ); … … 61 67 <div class="wrap"> 62 68 63 <h2><?php _e( 'Writing Settings'); ?></h2>69 <h2><?php _e( 'Writing Settings' ); ?></h2> 64 70 <?php do_action( 'bb_admin_notices' ); ?> 65 71 … … 67 73 <fieldset><?php foreach ( $general_options as $option => $args ) bb_option_form_element( $option, $args ); ?></fieldset> 68 74 <fieldset> 69 <legend><?php _e( 'Remote Publishing'); ?></legend>75 <legend><?php _e( 'Remote Publishing' ); ?></legend> 70 76 <p> 71 77 <?php _e( 'To interact with bbPress from a desktop client or remote website that uses the XML-RPC publishing interface you must enable it below.' ); ?> … … 76 82 <?php bb_nonce_field( 'options-writing-update' ); ?> 77 83 <input type="hidden" name="action" value="update" /> 78 <input class="submit" type="submit" name="submit" value="<?php _e( 'Save Changes')?>" />84 <input class="submit" type="submit" name="submit" value="<?php _e( 'Save Changes' ); ?>" /> 79 85 </fieldset> 80 86 </form>
Note: See TracChangeset
for help on using the changeset viewer.