Changeset 54831
- Timestamp:
- 11/13/2022 01:49:16 PM (2 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r54524 r54831 2211 2211 * 2212 2212 * @since 5.0.0 2213 * 2214 * @global WP_Post $post Global post object. 2215 * @global WP_Screen $current_screen WordPress current screen object. 2216 * @global array $wp_meta_boxes 2213 2217 */ 2214 2218 function the_block_editor_meta_boxes() { -
trunk/src/wp-includes/block-template-utils.php
r54817 r54831 1201 1201 * @since 6.0.0 Adds the whole theme to the export archive. 1202 1202 * 1203 * @global string $wp_version The WordPress version string. 1204 * 1203 1205 * @return WP_Error|string Path of the ZIP file or error on failure. 1204 1206 */ 1205 1207 function wp_generate_block_templates_export_file() { 1208 global $wp_version; 1209 1206 1210 if ( ! class_exists( 'ZipArchive' ) ) { 1207 1211 return new WP_Error( 'missing_zip_package', __( 'Zip Export not supported.' ) ); … … 1271 1275 // If a version is defined, add a schema. 1272 1276 if ( $theme_json_raw['version'] ) { 1273 global $wp_version;1274 1277 $theme_json_version = 'wp/' . substr( $wp_version, 0, 3 ); 1275 1278 $schema = array( '$schema' => 'https://schemas.wp.org/' . $theme_json_version . '/theme.json' ); -
trunk/src/wp-includes/class-wp-oembed-controller.php
r54133 r54831 161 161 * 162 162 * @see WP_oEmbed::get_html() 163 * @global WP_Embed $wp_embed 163 * @global WP_Embed $wp_embed 164 * @global WP_Scripts $wp_scripts 164 165 * 165 166 * @param WP_REST_Request $request Full data about the request. … … 167 168 */ 168 169 public function get_proxy_item( $request ) { 169 global $wp_embed ;170 global $wp_embed, $wp_scripts; 170 171 171 172 $args = $request->get_params(); … … 205 206 206 207 if ( $html ) { 207 global $wp_scripts;208 208 // Check if any scripts were enqueued by the shortcode, and include them in the response. 209 209 $enqueued_scripts = array();
Note: See TracChangeset
for help on using the changeset viewer.