Ticket #51439: 51439.diff
File 51439.diff, 4.4 KB (added by , 3 years ago) |
---|
-
src/wp-admin/edit-comments.php
25 25 check_admin_referer( 'bulk-comments' ); 26 26 27 27 if ( 'delete_all' === $doaction && ! empty( $_REQUEST['pagegen_timestamp'] ) ) { 28 /** 29 * @global wpdb $wpdb WordPress database abstraction object. 30 */ 31 global $wpdb; 32 28 33 $comment_status = wp_unslash( $_REQUEST['comment_status'] ); 29 34 $delete_time = wp_unslash( $_REQUEST['pagegen_timestamp'] ); 30 35 $comment_ids = $wpdb->get_col( $wpdb->prepare( "SELECT comment_ID FROM $wpdb->comments WHERE comment_approved = %s AND %s > comment_date_gmt", $comment_status, $delete_time ) ); … … 135 140 wp_enqueue_script( 'admin-comments' ); 136 141 enqueue_comment_hotkeys_js(); 137 142 143 /** 144 * @global int $post_id 145 */ 146 global $post_id; 147 138 148 if ( $post_id ) { 139 149 $comments_count = wp_count_comments( $post_id ); 140 150 $draft_or_post_title = wp_html_excerpt( _draft_or_post_title( $post_id ), 50, '…' ); -
src/wp-admin/edit-form-comment.php
10 10 if ( ! defined( 'ABSPATH' ) ) { 11 11 die( '-1' ); 12 12 } 13 14 /** 15 * @global WP_Comment $comment Global comment object. 16 */ 17 global $comment; 13 18 ?> 14 19 <form name="post" action="comment.php" method="post" id="post"> 15 20 <?php wp_nonce_field( 'update-comment_' . $comment->comment_ID ); ?> … … 139 144 <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text"><?php _e( 'Edit date and time' ); ?></span></a> 140 145 <fieldset id='timestampdiv' class='hide-if-js'> 141 146 <legend class="screen-reader-text"><?php _e( 'Date and time' ); ?></legend> 142 <?php touch_time( ( 'editcomment' === $action ), 0 ); ?> 147 <?php 148 /** 149 * @global string $action 150 */ 151 global $action; 152 153 touch_time( ( 'editcomment' === $action ), 0 ); 154 ?> 143 155 </fieldset> 144 156 </div> 145 157 -
src/wp-admin/edit.php
9 9 /** WordPress Administration Bootstrap */ 10 10 require_once __DIR__ . '/admin.php'; 11 11 12 /** 13 * @global string $typenow 14 */ 15 global $typenow; 16 12 17 if ( ! $typenow ) { 13 18 wp_die( __( 'Invalid post type.' ) ); 14 19 } … … 87 92 $post_status = preg_replace( '/[^a-z0-9_-]+/i', '', $_REQUEST['post_status'] ); 88 93 // Validate the post status exists. 89 94 if ( get_post_status_object( $post_status ) ) { 95 /** 96 * @global wpdb $wpdb WordPress database abstraction object. 97 */ 98 global $wpdb; 99 90 100 $post_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_type=%s AND post_status = %s", $post_type, $post_status ) ); 91 101 } 92 102 $doaction = 'delete'; -
src/wp-admin/install.php
225 225 * @global string $wp_version The WordPress version string. 226 226 * @global string $required_php_version The required PHP version string. 227 227 * @global string $required_mysql_version The required MySQL version string. 228 * @global wpdb $wpdb WordPress database abstraction object. 228 229 */ 229 global $wp_version, $required_php_version, $required_mysql_version ;230 global $wp_version, $required_php_version, $required_mysql_version, $wpdb; 230 231 231 232 $php_version = phpversion(); 232 233 $mysql_version = $wpdb->db_version(); -
src/wp-admin/upgrade.php
39 39 * @global string $wp_version The WordPress version string. 40 40 * @global string $required_php_version The required PHP version string. 41 41 * @global string $required_mysql_version The required MySQL version string. 42 * @global wpdb $wpdb WordPress database abstraction object. 42 43 */ 43 global $wp_version, $required_php_version, $required_mysql_version ;44 global $wp_version, $required_php_version, $required_mysql_version, $wpdb; 44 45 45 46 $step = (int) $step; 46 47