Changeset 13242
- Timestamp:
- 02/20/2010 02:01:46 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r13132 r13242 1836 1836 if ( $start < 1 ) 1837 1837 $start = 0; 1838 add_filter( 'post_limits', $limit_filter =create_function( '$a', "return 'LIMIT $start, 10';" ) );1838 add_filter( 'post_limits', create_function( '$a', "return 'LIMIT $start, 10';" ) ); 1839 1839 1840 1840 list($post_mime_types, $avail_post_mime_types) = wp_edit_attachments_query(); -
trunk/wp-admin/includes/ms.php
r13241 r13242 126 126 127 127 $id = (int) $id; 128 $user = get_userdata($id);129 128 130 129 do_action('wpmu_delete_user', $id); -
trunk/wp-admin/includes/post.php
r13051 r13242 961 961 if ( isset( $_GET['edit'] ) && $_GET['edit'] == $id ) 962 962 return ''; 963 $current_user = wp_get_current_user(); 963 964 964 if ( $closed = get_user_option('closedpostboxes_'.$page ) ) { 965 965 if ( !is_array( $closed ) ) { -
trunk/wp-admin/includes/schema.php
r13234 r13242 624 624 */ 625 625 function populate_network( $network_id = 1, $domain = '', $email = '', $site_name = '', $path = '/', $vhost = 'no' ) { 626 global $wpdb, $current_site, $wp_ version, $wp_db_version, $wp_rewrite;626 global $wpdb, $current_site, $wp_db_version, $wp_rewrite; 627 627 628 628 $msg = ''; -
trunk/wp-admin/includes/template.php
r13213 r13242 2112 2112 $actions['spam'] = "<a href='$spam_url' class='delete:the-comment-list:comment-$comment->comment_ID::spam=1 vim-s vim-destructive' title='" . esc_attr__( 'Mark this comment as spam' ) . "'>" . /* translators: mark as spam link */ _x( 'Spam', 'verb' ) . '</a>'; 2113 2113 } elseif ( 'spam' == $the_comment_status ) { 2114 $actions['unspam'] = "<a href='$un trash_url' class='delete:the-comment-list:comment-$comment->comment_ID:66cc66:unspam=1 vim-z vim-destructive'>" . __( 'Not Spam' ) . '</a>';2114 $actions['unspam'] = "<a href='$unspam_url' class='delete:the-comment-list:comment-$comment->comment_ID:66cc66:unspam=1 vim-z vim-destructive'>" . __( 'Not Spam' ) . '</a>'; 2115 2115 } elseif ( 'trash' == $the_comment_status ) { 2116 2116 $actions['untrash'] = "<a href='$untrash_url' class='delete:the-comment-list:comment-$comment->comment_ID:66cc66:untrash=1 vim-z vim-destructive'>" . __( 'Restore' ) . '</a>'; … … 2679 2679 */ 2680 2680 function wp_dropdown_roles( $selected = false ) { 2681 global $wp_roles;2682 2681 $p = ''; 2683 2682 $r = ''; … … 2685 2684 $editable_roles = get_editable_roles(); 2686 2685 2687 foreach ( $editable_roles as $role => $details ) {2686 foreach ( $editable_roles as $role => $details ) { 2688 2687 $name = translate_user_role($details['name'] ); 2689 2688 if ( $selected == $role ) // Make default first in list … … 3289 3288 <label class="screen-reader-text" for="find-posts-input"><?php _e( 'Search' ); ?></label> 3290 3289 <input type="text" id="find-posts-input" name="ps" value="" /> 3291 <input type="button" on click="findPosts.send();" value="<?php esc_attr_e( 'Search' ); ?>" class="button" /><br />3290 <input type="button" onClick="findPosts.send();" value="<?php esc_attr_e( 'Search' ); ?>" class="button" /><br /> 3292 3291 3293 3292 <input type="radio" name="find-posts-what" id="find-posts-posts" checked="checked" value="posts" /> … … 3299 3298 </div> 3300 3299 <div class="find-box-buttons"> 3301 <input type="button" class="button alignleft" on click="findPosts.close();" value="<?php esc_attr_e('Close'); ?>" />3300 <input type="button" class="button alignleft" onClick="findPosts.close();" value="<?php esc_attr_e('Close'); ?>" /> 3302 3301 <input id="find-posts-submit" type="submit" class="button-primary alignright" value="<?php esc_attr_e('Select'); ?>" /> 3303 3302 </div> … … 3545 3544 3546 3545 function screen_meta($screen) { 3547 global $wp_meta_boxes, $_wp_contextual_help, $ post_type;3546 global $wp_meta_boxes, $_wp_contextual_help, $title; 3548 3547 3549 3548 if ( is_string($screen) ) … … 3607 3606 <?php 3608 3607 endif; 3609 3610 global $title;3611 3608 3612 3609 $_wp_contextual_help = apply_filters('contextual_help_list', $_wp_contextual_help, $screen); -
trunk/wp-admin/includes/theme-install.php
r12673 r13242 367 367 */ 368 368 function display_themes($themes, $page = 1, $totalpages = 1) { 369 global $themes_allowedtags;370 371 369 $type = isset($_REQUEST['type']) ? stripslashes( $_REQUEST['type'] ) : ''; 372 370 $term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : ''; -
trunk/wp-admin/includes/theme.php
r13106 r13242 88 88 89 89 $themes_dir = trailingslashit( $themes_dir ); 90 91 $errors = array();92 93 90 $theme_dir = trailingslashit($themes_dir . $template); 94 91 $deleted = $wp_filesystem->delete($theme_dir, true); -
trunk/wp-admin/includes/user.php
r13106 r13242 424 424 425 425 $id = (int) $id; 426 $user = new WP_User($id);427 426 428 427 // allow for transaction statement -
trunk/wp-admin/post.php
r13101 r13242 52 52 */ 53 53 function redirect_post($post_id = '') { 54 global $action;55 56 $referredby = '';57 if ( !empty($_POST['referredby']) ) {58 $referredby = preg_replace('|https?://[^/]+|i', '', $_POST['referredby']);59 $referredby = remove_query_arg('_wp_original_http_referer', $referredby);60 }61 $referer = preg_replace('|https?://[^/]+|i', '', wp_get_referer());62 63 54 if ( !empty($_POST['mode']) && 'sidebar' == $_POST['mode'] ) { 64 55 if ( isset($_POST['saveasdraft']) ) -
trunk/wp-includes/comment-template.php
r13180 r13242 972 972 */ 973 973 function comments_popup_link( $zero = false, $one = false, $more = false, $css_class = '', $none = false ) { 974 global $id, $wpcommentspopupfile, $wpcommentsjavascript , $post;974 global $id, $wpcommentspopupfile, $wpcommentsjavascript; 975 975 976 976 if ( false === $zero ) $zero = __( 'No Comments' ); -
trunk/wp-includes/comment.php
r13150 r13242 829 829 $approved = array('0' => 'moderated', '1' => 'approved', 'spam' => 'spam', 'trash' => 'trash', 'post-trashed' => 'post-trashed'); 830 830 $known_types = array_keys( $approved ); 831 foreach ( (array) $count as $row_num =>$row ) {831 foreach ( (array) $count as $row ) { 832 832 // Don't count post-trashed toward totals 833 833 if ( 'post-trashed' != $row['comment_approved'] && 'trash' != $row['comment_approved'] ) -
trunk/wp-includes/functions.php
r13240 r13242 24 24 */ 25 25 function mysql2date( $dateformatstring, $mysqlstring, $translate = true ) { 26 global $wp_locale;27 26 $m = $mysqlstring; 28 27 if ( empty( $m ) ) -
trunk/wp-includes/general-template.php
r13219 r13242 1353 1353 */ 1354 1354 function get_the_date( $d = '' ) { 1355 global $post , $day;1355 global $post; 1356 1356 $the_date = ''; 1357 1357 -
trunk/wp-includes/link-template.php
r13240 r13242 1678 1678 */ 1679 1679 function paginate_comments_links($args = array()) { 1680 global $wp_ query, $wp_rewrite;1680 global $wp_rewrite; 1681 1681 1682 1682 if ( !is_singular() || !get_option('page_comments') ) -
trunk/wp-includes/ms-blogs.php
r13159 r13242 231 231 $update_details[$field] = $details[$field]; 232 232 233 $ result = $wpdb->update( $wpdb->blogs, $update_details, array('blog_id' => $blog_id) );233 $wpdb->update( $wpdb->blogs, $update_details, array('blog_id' => $blog_id) ); 234 234 235 235 // If spam status changed, issue actions. -
trunk/wp-includes/ms-functions.php
r13240 r13242 688 688 689 689 function wpmu_signup_user_notification($user, $user_email, $key, $meta = '') { 690 global $current_site;691 692 690 if ( !apply_filters('wpmu_signup_user_notification', $user, $user_email, $key, $meta) ) 693 691 return false; … … 781 779 if ( is_wp_error($user_id) ) 782 780 return false; 783 784 $user = new WP_User($user_id);785 781 786 782 // Newly created users have no roles or caps until they are added to a blog. -
trunk/wp-includes/pluggable.php
r13231 r13242 970 970 $post = get_post($comment->comment_post_ID); 971 971 $user = get_userdata( $post->post_author ); 972 $current_user = wp_get_current_user();973 972 974 973 if ( $comment->user_id == $post->post_author ) return false; // The author moderated a comment on his own post -
trunk/wp-includes/post-template.php
r13110 r13242 180 180 */ 181 181 function get_the_content($more_link_text = null, $stripteaser = 0) { 182 global $id, $post, $more, $page, $pages, $multipage, $preview , $pagenow;182 global $id, $post, $more, $page, $pages, $multipage, $preview; 183 183 184 184 if ( null === $more_link_text ) … … 368 368 */ 369 369 function get_body_class( $class = '' ) { 370 global $wp_query, $wpdb , $current_user;370 global $wp_query, $wpdb; 371 371 372 372 $classes = array(); -
trunk/wp-includes/post.php
r13240 r13242 1430 1430 $stats[$state] = 0; 1431 1431 1432 foreach ( (array) $count as $row _num => $row)1432 foreach ( (array) $count as $row ) 1433 1433 $stats[$row['post_status']] = $row['num_posts']; 1434 1434 -
trunk/wp-includes/wp-db.php
r13229 r13242 870 870 $this->bail(" 871 871 <h1>Error establishing a database connection</h1> 872 <p>This either means that the username and password information in your <code>wp-config.php</code> file is incorrect or we can't contact the database server at <code> $dbhost</code>. This could mean your host's database server is down.</p>872 <p>This either means that the username and password information in your <code>wp-config.php</code> file is incorrect or we can't contact the database server at <code>{$details['db_host']}</code>. This could mean your host's database server is down.</p> 873 873 <ul> 874 874 <li>Are you sure you have the correct username and password?</li> -
trunk/wp-login.php
r12983 r13242 243 243 244 244 wp_set_password($new_pass, $user->ID); 245 update_user_option($user _ID, 'default_password_nag', true, true); //Set up the Password change nag.245 update_user_option($user->ID, 'default_password_nag', true, true); //Set up the Password change nag. 246 246 $message = sprintf(__('Username: %s'), $user->user_login) . "\r\n"; 247 247 $message .= sprintf(__('Password: %s'), $new_pass) . "\r\n";
Note: See TracChangeset
for help on using the changeset viewer.