WordPress/wp-includes/widgets
Sergey Biryukov 47ed56f38f Code Modernization: Replace `dirname( __FILE__ )` calls with `__DIR__` magic constant.
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
2020-02-06 06:33:11 +00:00
..
class-wp-nav-menu-widget.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
class-wp-widget-archives.php Docs: Correct invalid hook docblock placement. 2019-10-27 19:35:01 +00:00
class-wp-widget-calendar.php I18N: Correct encoding for `wp-includes/widgets/class-wp-widget-calendar.php`, accidentally saved in ANSI instead of UTF-8. 2019-06-05 15:09:53 +00:00
class-wp-widget-categories.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
class-wp-widget-custom-html.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
class-wp-widget-links.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
class-wp-widget-media-audio.php Docs: Remove `@return void` from widget DocBlocks. 2020-01-10 00:30:05 +00:00
class-wp-widget-media-gallery.php Docs: Remove `@return void` from widget DocBlocks. 2020-01-10 00:30:05 +00:00
class-wp-widget-media-image.php Docs: Remove `@return void` from widget DocBlocks. 2020-01-10 00:30:05 +00:00
class-wp-widget-media-video.php Docs: Remove `@return void` from widget DocBlocks. 2020-01-10 00:30:05 +00:00
class-wp-widget-media.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
class-wp-widget-meta.php Accessibility: Remove title attributes from the Meta widget. 2019-08-03 13:28:57 +00:00
class-wp-widget-pages.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
class-wp-widget-recent-comments.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
class-wp-widget-recent-posts.php Docs: Correct invalid hook docblock placement. 2019-10-27 19:35:01 +00:00
class-wp-widget-rss.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
class-wp-widget-search.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
class-wp-widget-tag-cloud.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
class-wp-widget-text.php Code Modernization: Replace `dirname( __FILE__ )` calls with `__DIR__` magic constant. 2020-02-06 06:33:11 +00:00