Ticket #17749: new-unit-tests.diff
File new-unit-tests.diff, 2.2 KB (added by , 13 years ago) |
---|
-
wp-includes/media.php
1288 1288 return apply_filters( 'embed_maybe_make_link', $output, $url ); 1289 1289 } 1290 1290 } 1291 $ wp_embed= new WP_Embed();1291 $GLOBALS['wp_embed'] = new WP_Embed(); 1292 1292 1293 1293 /** 1294 1294 * Register an embed handler. This function should probably only be used for sites that do not support oEmbed. -
wp-includes/widgets.php
385 385 /** 386 386 * Private 387 387 */ 388 $ _wp_deprecated_widgets_callbacks= array(388 $GLOBALS['_wp_deprecated_widgets_callbacks'] = array( 389 389 'wp_widget_pages', 390 390 'wp_widget_pages_control', 391 391 'wp_widget_calendar', -
wp-settings.php
100 100 // Run the installer if WordPress is not installed. 101 101 wp_not_installed(); 102 102 103 103 104 // Load most of WordPress. 104 105 require( ABSPATH . WPINC . '/class-wp-walker.php' ); 105 106 require( ABSPATH . WPINC . '/class-wp-ajax-response.php' ); … … 245 246 * @global object $wp_widget_factory 246 247 * @since 2.8.0 247 248 */ 248 $ wp_widget_factory= new WP_Widget_Factory();249 $GLOBALS['wp_widget_factory'] = new WP_Widget_Factory(); 249 250 250 251 do_action( 'setup_theme' ); 251 252 -
wp-admin/includes/upgrade.php
1382 1382 $queries = explode( ';', $queries ); 1383 1383 if ('' == $queries[count($queries) - 1]) array_pop($queries); 1384 1384 } 1385 $queries = apply_filters( 'dbdelta_queries', $queries ); 1385 1386 1386 1387 $cqueries = array(); // Creation Queries 1387 1388 $iqueries = array(); // Insertion Queries … … 1402 1403 // Unrecognized query type 1403 1404 } 1404 1405 } 1406 $cqueries = apply_filters( 'dbdelta_create_queries', $cqueries ); 1407 $iqueries = apply_filters( 'dbdelta_insert_queries', $iqueries ); 1405 1408 1406 1409 // Check to see which tables and fields exist 1407 1410 if ($tables = $wpdb->get_col('SHOW TABLES;')) {