Changeset 12859
- Timestamp:
- 01/26/2010 10:49:05 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
-
wp-admin/admin-ajax.php (modified) (2 diffs)
-
wp-admin/includes/plugin-install.php (modified) (1 diff)
-
wp-admin/includes/plugin.php (modified) (1 diff)
-
wp-admin/includes/template.php (modified) (1 diff)
-
wp-admin/includes/theme.php (modified) (1 diff)
-
wp-admin/network.php (modified) (5 diffs)
-
wp-admin/revision.php (modified) (1 diff)
-
wp-content/blogs.php (modified) (2 diffs)
-
wp-includes/comment-template.php (modified) (4 diffs)
-
wp-includes/locale.php (modified) (1 diff)
-
wp-includes/meta.php (modified) (7 diffs)
-
wp-login.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r12833 r12859 626 626 $level++; 627 627 } 628 $tag_full_name = esc_attr($tag_full_name); 628 $tag_full_name = esc_attr($tag_full_name); 629 629 } 630 630 echo _tag_row( $tag, $level, $tag_full_name, $taxonomy ); … … 1185 1185 die( __('Cheatin’ uh?') ); 1186 1186 $tax = get_taxonomy($taxonomy); 1187 1187 1188 1188 if ( ! current_user_can( $tax->edit_cap ) ) 1189 1189 die( __('Cheatin’ uh?') ); -
trunk/wp-admin/includes/plugin-install.php
r12789 r12859 35 35 $args->per_page = 24; 36 36 37 // Allows a plugin to override the WordPress.org API entirely. 37 // Allows a plugin to override the WordPress.org API entirely. 38 38 // Use the filter 'plugins_api_result' to mearly add results. 39 39 // Please ensure that a object is returned from the following filters. -
trunk/wp-admin/includes/plugin.php
r12848 r12859 475 475 /** 476 476 * validate active plugins 477 * 478 * validate all active plugins, deactivates invalid and 477 * 478 * validate all active plugins, deactivates invalid and 479 479 * returns an array of deactived ones. 480 * 480 * 481 481 * @since unknown 482 482 * @return array invalid plugins, plugin as key, error as value -
trunk/wp-admin/includes/template.php
r12833 r12859 674 674 function _tag_row( $tag, $level, $class = '', $taxonomy = 'post_tag' ) { 675 675 $count = number_format_i18n( $tag->count ); 676 if ( 'post_tag' == $taxonomy ) 676 if ( 'post_tag' == $taxonomy ) 677 677 $tagsel = 'tag'; 678 678 elseif ( 'category' == $taxonomy ) -
trunk/wp-admin/includes/theme.php
r12789 r12859 152 152 } 153 153 reset( $themes ); 154 154 155 155 return $themes; 156 156 } -
trunk/wp-admin/network.php
r12830 r12859 43 43 clearstatcache(); 44 44 $files = array( "htaccess.dist", ".htaccess" ); 45 45 46 46 $indent = ' '; 47 47 foreach ( (array) $files as $val ) { … … 105 105 <h2><?php esc_html_e('Installing Network of WordPress Sites'); ?></h2> 106 106 <p><?php _e('I will help you enable the features for creating a network of sites by asking you a few questions so that you can create configuration files and make a directory to store all your uploaded files.'); ?></p> 107 107 108 108 <h2><?php esc_html_e('What do I need?'); ?></h2> 109 109 <ul> … … 114 114 <?php 115 115 $mod_rewrite_msg = "\n<p>" . __( "If the <code>mod_rewrite</code> module is disabled ask your administrator to enable that module, or look at the <a href='http://httpd.apache.org/docs/mod/mod_rewrite.html'>Apache documentation</a> or <a href='http://www.google.com/search?q=apache+mod_rewrite'>elsewhere</a> for help setting it up." ) . '</p>'; 116 116 117 117 if ( function_exists( 'apache_get_modules' ) ) { 118 118 $modules = apache_get_modules(); … … 151 151 <h3><?php printf( __( 'We recommend you change your siteurl to <code>%1$s</code> before enabling the network feature. It will still be possible to visit your site using the "www" prefix with an address like <code>%2$s</code> but any links will not have the "www" prefix.' ), $nowww, $hostname ); ?></h3> 152 152 <?php } ?> 153 <table class="form-table"> 154 <tr> 155 <th scope='row'><?php esc_html_e( 'Server Address' ); ?></th> 153 <table class="form-table"> 154 <tr> 155 <th scope='row'><?php esc_html_e( 'Server Address' ); ?></th> 156 156 <td> 157 157 <p><?php printf( __( 'This will be the Internet address of your site: <strong><em>%s</em></strong>.' ), $hostname ); ?></p> 158 158 <input type='hidden' name='basedomain' value='<?php echo esc_attr( $hostname ); ?>' /> 159 159 <p><?php _e( 'Do not use an IP address (like 127.0.0.1) or a single word hostname like <q>localhost</q> as your server address.' ); ?></p> 160 </td> 160 </td> 161 161 </tr> 162 162 </table> 163 163 164 164 <h2><?php esc_html_e( 'Site Details' ); ?></h2> 165 <table class="form-table"> 166 <tr> 167 <th scope='row'><?php esc_html_e( 'Site Title' ); ?></th> 165 <table class="form-table"> 166 <tr> 167 <th scope='row'><?php esc_html_e( 'Site Title' ); ?></th> 168 168 <td> 169 169 <input name='weblog_title' type='text' size='45' value='<?php echo esc_attr( $weblog_title ); ?>' /> 170 170 <br /><?php _e( 'What would you like to call your site?' ); ?> 171 </td> 172 </tr> 173 <tr> 174 <th scope='row'><?php esc_html_e( 'Email' ); ?></th> 171 </td> 172 </tr> 173 <tr> 174 <th scope='row'><?php esc_html_e( 'Email' ); ?></th> 175 175 <td> 176 <input name='email' type='text' size='45' value='<?php echo esc_attr( $email ); ?>' /> 176 <input name='email' type='text' size='45' value='<?php echo esc_attr( $email ); ?>' /> 177 177 <br /><?php _e( 'Your email address.' ); ?> 178 </td> 179 </tr> 180 </table> 178 </td> 179 </tr> 180 </table> 181 181 <p class='submit'><input class="button" name='submit' type='submit' value='<?php esc_attr_e( 'Proceed' ); ?>' /></p> 182 182 <?php … … 272 272 } 273 273 274 $action = isset($_POST[ 'action' ]) ? $_POST[ 'action' ] : null; 274 $action = isset($_POST[ 'action' ]) ? $_POST[ 'action' ] : null; 275 275 switch($action) { 276 276 case "step2": 277 277 check_admin_referer( 'install-network-1' ); 278 278 279 279 // Install! 280 280 $base = stripslashes( dirname( dirname($_SERVER["SCRIPT_NAME"]) ) ); -
trunk/wp-admin/revision.php
r12751 r12859 127 127 if ( !$redirect ) { 128 128 if ( empty($post->post_type) ) // Empty post_type means either malformed object found, or no valid parent was found. 129 $redirect = 'edit.php'; 129 $redirect = 'edit.php'; 130 130 elseif ( !post_type_supports($post->post_type, 'revisions') ) 131 131 $redirect = 'edit.php?post_type=' . $post->post_type; -
trunk/wp-content/blogs.php
r12603 r12859 102 102 103 103 // Support for Conditional GET 104 if (isset($_SERVER['HTTP_IF_NONE_MATCH'])) 104 if (isset($_SERVER['HTTP_IF_NONE_MATCH'])) 105 105 $client_etag = stripslashes($_SERVER['HTTP_IF_NONE_MATCH']); 106 106 else … … 113 113 $client_modified_timestamp = $client_last_modified ? strtotime($client_last_modified) : 0; 114 114 115 // Make a timestamp for our most recent modification... 115 // Make a timestamp for our most recent modification... 116 116 $modified_timestamp = strtotime($last_modified); 117 117 -
trunk/wp-includes/comment-template.php
r12821 r12859 41 41 * @since 0.71 42 42 * @uses apply_filters() Calls 'comment_author' on comment author before displaying 43 * 43 * 44 44 * @param int $comment_ID The ID of the comment for which to print the author. Optional. 45 45 */ … … 857 857 if ( empty($file) ) 858 858 $file = '/comments.php'; 859 859 860 860 $req = get_option('require_name_email'); 861 861 … … 1449 1449 * in the array of fields. 1450 1450 * 1451 * @since 3.0 1451 * @since 3.0 1452 1452 * @param array $args Options for strings, fields etc in the form 1453 1453 * @param mixed $post_id Post ID to generate the form for, uses the current post if null … … 1456 1456 function comment_form( $args = array(), $post_id = null ) { 1457 1457 global $user_identity, $id; 1458 1458 1459 1459 if ( null === $post_id ) 1460 1460 $post_id = $id; 1461 1461 else 1462 1462 $id = $post_id; 1463 1463 1464 1464 $commenter = wp_get_current_commenter(); 1465 1465 1466 1466 $req = get_option( 'require_name_email' ); 1467 1467 $aria_req = ( $req ? " aria-required='true'" : '' ); 1468 1468 $req_str = ( $req ? __( ' (required)' ) : '' ); 1469 $defaults = array( 'fields' => apply_filters( 'comment_form_default_fields', array( 'author' => '<p><input type="text" name="author" id="author" value="' . esc_attr( $commenter['comment_author'] ) . '" size="22" tabindex="1"' . $aria_req . ' /> <label for="author"><small>' . __( 'Name' ) . $req_str . '</small></label></p>', 1470 'email' => '<p><input type="text" name="email" id="email" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="22" tabindex="2"' . $aria_req . ' /> <label for="email"><small>' . __( 'Mail (will not be published)' ) . $req_str . '</small></label></p>', 1469 $defaults = array( 'fields' => apply_filters( 'comment_form_default_fields', array( 'author' => '<p><input type="text" name="author" id="author" value="' . esc_attr( $commenter['comment_author'] ) . '" size="22" tabindex="1"' . $aria_req . ' /> <label for="author"><small>' . __( 'Name' ) . $req_str . '</small></label></p>', 1470 'email' => '<p><input type="text" name="email" id="email" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="22" tabindex="2"' . $aria_req . ' /> <label for="email"><small>' . __( 'Mail (will not be published)' ) . $req_str . '</small></label></p>', 1471 1471 'url' => '<p><input type="text" name="url" id="url" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="22" tabindex="3" /> <label for="url"><small>' . __( 'Website' ) . '</small></label></p>' ) ), 1472 'comment_field' => '<p><textarea name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea></p>', 1473 'must_log_in' => '<p>' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 1474 'logged_in_as' => '<p>' . sprintf( __( 'Logged in as <a href="%s">%s</a>. <a href="%s" title="Log out of this account">Log out »</a></p>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ), 1475 'id_form' => 'commentform', 1476 'id_submit' => 'submit', 1477 'title_reply' => __( 'Leave a Reply' ), 1478 'title_reply_to' => __( 'Leave a Reply to %s'), 1479 'cancel_reply_link' => '', 1480 'label_submit' => __( 'Submit Comment' ), 1472 'comment_field' => '<p><textarea name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea></p>', 1473 'must_log_in' => '<p>' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>', 1474 'logged_in_as' => '<p>' . sprintf( __( 'Logged in as <a href="%s">%s</a>. <a href="%s" title="Log out of this account">Log out »</a></p>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ), 1475 'id_form' => 'commentform', 1476 'id_submit' => 'submit', 1477 'title_reply' => __( 'Leave a Reply' ), 1478 'title_reply_to' => __( 'Leave a Reply to %s'), 1479 'cancel_reply_link' => '', 1480 'label_submit' => __( 'Submit Comment' ), 1481 1481 ); 1482 1482 $args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) ); 1483 1483 1484 1484 ?> 1485 1485 <?php if ( comments_open() ) : ?> -
trunk/wp-includes/locale.php
r12789 r12859 128 128 } 129 129 130 // Abbreviations for each day. 130 // Abbreviations for each day. 131 131 $this->weekday_abbrev[__('Sunday')] = /* translators: three-letter abbreviation of the weekday */ __('Sun'); 132 132 $this->weekday_abbrev[__('Monday')] = /* translators: three-letter abbreviation of the weekday */ __('Mon'); -
trunk/wp-includes/meta.php
r12761 r12859 3 3 * Metadata API 4 4 * 5 * Functions for retrieving and manipulating metadata of various WordPress object types. Metadata 6 * for an object is a represented by a simple key-value pair. Objects may contain multiple 5 * Functions for retrieving and manipulating metadata of various WordPress object types. Metadata 6 * for an object is a represented by a simple key-value pair. Objects may contain multiple 7 7 * metadata entries that share the same key and differ only in their value. 8 8 * … … 24 24 * @param string $meta_key Metadata key 25 25 * @param string $meta_value Metadata value 26 * @param bool $unique Optional, default is false. Whether the specified metadata key should be 27 * unique for the object. If true, and the object already has a value for the specified 26 * @param bool $unique Optional, default is false. Whether the specified metadata key should be 27 * unique for the object. If true, and the object already has a value for the specified 28 28 * metadata key, no change will be made 29 29 * @return bool True on successful update, false on failure. … … 64 64 65 65 /** 66 * Update metadata for the specified object. If no value already exists for the specified object 66 * Update metadata for the specified object. If no value already exists for the specified object 67 67 * ID and metadata key, the metadata will be added. 68 68 * 69 69 * @since 2.9.0 70 70 * @uses $wpdb WordPress database object for queries. 71 * @uses do_action() Calls 'update_{$meta_type}_meta' before updating metadata with meta_id of 71 * @uses do_action() Calls 'update_{$meta_type}_meta' before updating metadata with meta_id of 72 72 * metadata entry to update, object ID, meta key, and meta value 73 * @uses do_action() Calls 'updated_{$meta_type}_meta' after updating metadata with meta_id of 73 * @uses do_action() Calls 'updated_{$meta_type}_meta' after updating metadata with meta_id of 74 74 * updated metadata entry, object ID, meta key, and meta value 75 75 * … … 78 78 * @param string $meta_key Metadata key 79 79 * @param string $meta_value Metadata value 80 * @param string $prev_value Optional. If specified, only update existing metadata entries with 80 * @param string $prev_value Optional. If specified, only update existing metadata entries with 81 81 * the specified value. Otherwise, update all entries. 82 82 * @return bool True on successful update, false on failure. … … 125 125 * @since 2.9.0 126 126 * @uses $wpdb WordPress database object for queries. 127 * @uses do_action() Calls 'deleted_{$meta_type}_meta' after deleting with meta_id of 127 * @uses do_action() Calls 'deleted_{$meta_type}_meta' after deleting with meta_id of 128 128 * deleted metadata entries, object ID, meta key, and meta value 129 129 * … … 131 131 * @param int $object_id ID of the object metadata is for 132 132 * @param string $meta_key Metadata key 133 * @param string $meta_value Optional. Metadata value. If specified, only delete metadata entries 133 * @param string $meta_value Optional. Metadata value. If specified, only delete metadata entries 134 134 * with this value. Otherwise, delete all entries with the specified meta_key. 135 * @param bool $delete_all Optional, default is false. If true, delete matching metadata entries 136 * for all objects, ignoring the specified object_id. Otherwise, only delete matching 135 * @param bool $delete_all Optional, default is false. If true, delete matching metadata entries 136 * for all objects, ignoring the specified object_id. Otherwise, only delete matching 137 137 * metadata entries for the specified object_id. 138 138 * @return bool True on successful delete, false on failure. … … 186 186 * @param string $meta_type Type of object metadata is for (e.g., comment, post, or user) 187 187 * @param int $object_id ID of the object metadata is for 188 * @param string $meta_key Optional. Metadata key. If not specified, retrieve all metadata for 188 * @param string $meta_key Optional. Metadata key. If not specified, retrieve all metadata for 189 189 * the specified object. 190 * @param bool $single Optional, default is false. If true, return only the first value of the 190 * @param bool $single Optional, default is false. If true, return only the first value of the 191 191 * specified meta_key. This parameter has no effect if meta_key is not specified. 192 192 * @return string|array Single metadata value, or array of values -
trunk/wp-login.php
r12817 r12859 615 615 d = document.getElementById('user_pass'); 616 616 <?php } else { ?> 617 d = document.getElementById('user_login'); 617 d = document.getElementById('user_login'); 618 618 <?php } ?> 619 619 d.value = '';
Note: See TracChangeset
for help on using the changeset viewer.