mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-27 03:27:46 +01:00
47ed56f38f
This avoids the performance overhead of the function call every time `dirname( __FILE__ )` was used instead of `__DIR__`. This commit also includes: * Removing unnecessary parentheses from `include`/`require` statements. These are language constructs, not function calls. * Replacing `include` statements for several files with `require_once`, for consistency: * `wp-admin/admin-header.php` * `wp-admin/admin-footer.php` * `wp-includes/version.php` Props ayeshrajans, desrosj, valentinbora, jrf, joostdevalk, netweb. Fixes #48082. Built from https://develop.svn.wordpress.org/trunk@47198 git-svn-id: http://core.svn.wordpress.org/trunk@46998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
66 lines
2.1 KiB
PHP
66 lines
2.1 KiB
PHP
<?php
|
|
/**
|
|
* Widget API: Default core widgets
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Widgets
|
|
* @since 2.8.0
|
|
*/
|
|
|
|
/** WP_Widget_Pages class */
|
|
require_once ABSPATH . WPINC . '/widgets/class-wp-widget-pages.php';
|
|
|
|
/** WP_Widget_Links class */
|
|
require_once ABSPATH . WPINC . '/widgets/class-wp-widget-links.php';
|
|
|
|
/** WP_Widget_Search class */
|
|
require_once ABSPATH . WPINC . '/widgets/class-wp-widget-search.php';
|
|
|
|
/** WP_Widget_Archives class */
|
|
require_once ABSPATH . WPINC . '/widgets/class-wp-widget-archives.php';
|
|
|
|
/** WP_Widget_Media class */
|
|
require_once ABSPATH . WPINC . '/widgets/class-wp-widget-media.php';
|
|
|
|
/** WP_Widget_Media_Audio class */
|
|
require_once ABSPATH . WPINC . '/widgets/class-wp-widget-media-audio.php';
|
|
|
|
/** WP_Widget_Media_Image class */
|
|
require_once ABSPATH . WPINC . '/widgets/class-wp-widget-media-image.php';
|
|
|
|
/** WP_Widget_Media_Video class */
|
|
require_once ABSPATH . WPINC . '/widgets/class-wp-widget-media-video.php';
|
|
|
|
/** WP_Widget_Media_Gallery class */
|
|
require_once ABSPATH . WPINC . '/widgets/class-wp-widget-media-gallery.php';
|
|
|
|
/** WP_Widget_Meta class */
|
|
require_once ABSPATH . WPINC . '/widgets/class-wp-widget-meta.php';
|
|
|
|
/** WP_Widget_Calendar class */
|
|
require_once ABSPATH . WPINC . '/widgets/class-wp-widget-calendar.php';
|
|
|
|
/** WP_Widget_Text class */
|
|
require_once ABSPATH . WPINC . '/widgets/class-wp-widget-text.php';
|
|
|
|
/** WP_Widget_Categories class */
|
|
require_once ABSPATH . WPINC . '/widgets/class-wp-widget-categories.php';
|
|
|
|
/** WP_Widget_Recent_Posts class */
|
|
require_once ABSPATH . WPINC . '/widgets/class-wp-widget-recent-posts.php';
|
|
|
|
/** WP_Widget_Recent_Comments class */
|
|
require_once ABSPATH . WPINC . '/widgets/class-wp-widget-recent-comments.php';
|
|
|
|
/** WP_Widget_RSS class */
|
|
require_once ABSPATH . WPINC . '/widgets/class-wp-widget-rss.php';
|
|
|
|
/** WP_Widget_Tag_Cloud class */
|
|
require_once ABSPATH . WPINC . '/widgets/class-wp-widget-tag-cloud.php';
|
|
|
|
/** WP_Nav_Menu_Widget class */
|
|
require_once ABSPATH . WPINC . '/widgets/class-wp-nav-menu-widget.php';
|
|
|
|
/** WP_Widget_Custom_HTML class */
|
|
require_once ABSPATH . WPINC . '/widgets/class-wp-widget-custom-html.php';
|