Changeset 53450
- Timestamp:
- 05/29/2022 03:33:12 PM (2 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-comments.php
r51975 r53450 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'] ); … … 135 140 wp_enqueue_script( 'admin-comments' ); 136 141 enqueue_comment_hotkeys_js(); 142 143 /** 144 * @global int $post_id 145 */ 146 global $post_id; 137 147 138 148 if ( $post_id ) { -
trunk/src/wp-admin/edit-form-comment.php
r51080 r53450 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"> … … 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> -
trunk/src/wp-admin/edit.php
r51850 r53450 9 9 /** WordPress Administration Bootstrap */ 10 10 require_once __DIR__ . '/admin.php'; 11 12 /** 13 * @global string $typenow The post type of the current screen. 14 */ 15 global $typenow; 11 16 12 17 if ( ! $typenow ) { … … 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 } -
trunk/src/wp-admin/install.php
r53426 r53450 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 */ 229 global $wp_version, $required_php_version, $required_mysql_version; 228 * @global wpdb $wpdb WordPress database abstraction object. 229 */ 230 global $wp_version, $required_php_version, $required_mysql_version, $wpdb; 230 231 231 232 $php_version = PHP_VERSION; -
trunk/src/wp-admin/upgrade.php
r53426 r53450 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;
Note: See TracChangeset
for help on using the changeset viewer.