Current Path: > home > ivftiowh > > www > wp-includes
Operation : Linux premium88.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64 Software : Apache Server IP : 185.61.154.216 | Your IP: 216.73.216.44 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
ID3 | Directory | - | - | |
IXR | Directory | - | - | |
PHPMailer | Directory | - | - | |
Requests | Directory | - | - | |
SimplePie | Directory | - | - | |
Text | Directory | - | - | |
assets | Directory | - | - | |
block-patterns | Directory | - | - | |
block-supports | Directory | - | - | |
blocks | Directory | - | - | |
certificates | Directory | - | - | |
css | Directory | - | - | |
customize | Directory | - | - | |
fonts | Directory | - | - | |
html-api | Directory | - | - | |
images | Directory | - | - | |
js | Directory | - | - | |
php-compat | Directory | - | - | |
pomo | Directory | - | - | |
rest-api | Directory | - | - | |
sitemaps | Directory | - | - | |
sodium_compat | Directory | - | - | |
style-engine | Directory | - | - | |
theme-compat | Directory | - | - | |
widgets | Directory | - | - | |
.htaccess | File | 160 bytes | June 28 2024 08:27:59. | |
admin-bar.php | File | 35131 bytes | September 13 2023 04:25:41. | |
atomlib.php | File | 11950 bytes | September 13 2023 04:25:41. | |
author-template.php | File | 18951 bytes | September 13 2023 04:25:41. | |
block-editor.php | File | 27598 bytes | September 13 2023 04:25:41. | |
block-i18n.json | File | 316 bytes | September 13 2023 04:25:41. | |
block-patterns.php | File | 15901 bytes | September 13 2023 04:25:41. | |
block-template-utils.php | File | 49130 bytes | September 13 2023 04:25:41. | |
block-template.php | File | 10592 bytes | September 13 2023 04:25:42. | |
blocks.php | File | 59159 bytes | June 24 2024 20:05:07. | |
bookmark-template.php | File | 12909 bytes | September 13 2023 04:25:41. | |
bookmark.php | File | 15378 bytes | September 13 2023 04:25:41. | |
cache-compat.php | File | 5969 bytes | September 13 2023 04:25:42. | |
cache.php | File | 13474 bytes | September 13 2023 04:25:42. | |
canonical.php | File | 33339 bytes | September 13 2023 04:25:41. | |
capabilities.php | File | 40026 bytes | September 13 2023 04:25:41. | |
category-template.php | File | 57009 bytes | September 13 2023 04:25:41. | |
category.php | File | 12702 bytes | September 13 2023 04:25:41. | |
class-IXR.php | File | 2543 bytes | August 05 2020 08:21:22. | |
class-feed.php | File | 529 bytes | August 05 2020 08:21:23. | |
class-http.php | File | 367 bytes | September 13 2023 04:25:42. | |
class-json.php | File | 43684 bytes | September 13 2023 04:25:42. | |
class-oembed.php | File | 401 bytes | September 13 2023 04:25:41. | |
class-phpass.php | File | 6708 bytes | September 13 2023 04:25:41. | |
class-phpmailer.php | File | 664 bytes | September 13 2023 04:25:41. | |
class-pop3.php | File | 20969 bytes | September 13 2023 04:25:41. | |
class-requests.php | File | 2237 bytes | September 13 2023 04:25:41. | |
class-simplepie.php | File | 98124 bytes | September 13 2023 04:25:41. | |
class-smtp.php | File | 457 bytes | September 13 2023 04:25:41. | |
class-snoopy.php | File | 37715 bytes | September 13 2023 04:25:42. | |
class-walker-category-dropdown.php | File | 2473 bytes | September 13 2023 04:25:41. | |
class-walker-category.php | File | 8478 bytes | September 13 2023 04:25:41. | |
class-walker-comment.php | File | 14214 bytes | September 13 2023 04:25:41. | |
class-walker-nav-menu.php | File | 11313 bytes | September 13 2023 04:25:42. | |
class-walker-page-dropdown.php | File | 2710 bytes | September 13 2023 04:25:41. | |
class-walker-page.php | File | 7623 bytes | September 13 2023 04:25:41. | |
class-wp-admin-bar-plain.php | File | 1000 bytes | September 13 2023 04:25:41. | |
class-wp-admin-bar.php | File | 17364 bytes | September 13 2023 04:25:41. | |
class-wp-ajax-response.php | File | 5266 bytes | September 13 2023 04:25:41. | |
class-wp-application-passwords.php | File | 12854 bytes | September 13 2023 04:25:41. | |
class-wp-block-editor-context.php | File | 1350 bytes | September 13 2023 04:25:42. | |
class-wp-block-list.php | File | 4749 bytes | September 13 2023 04:25:42. | |
class-wp-block-live.php | File | 1000 bytes | September 13 2023 04:25:41. | |
class-wp-block-parser-block.php | File | 2555 bytes | September 13 2023 04:25:42. | |
class-wp-block-parser-frame.php | File | 1916 bytes | September 13 2023 04:25:41. | |
class-wp-block-parser.php | File | 11761 bytes | September 13 2023 04:25:41. | |
class-wp-block-pattern-categories-registry.php | File | 5371 bytes | September 13 2023 04:25:42. | |
class-wp-block-patterns-registry.php | File | 8775 bytes | October 13 2023 06:16:03. | |
class-wp-block-styles-registry.php | File | 5883 bytes | September 13 2023 04:25:41. | |
class-wp-block-supports.php | File | 5521 bytes | September 13 2023 04:25:42. | |
class-wp-block-template.php | File | 1951 bytes | September 13 2023 04:25:41. | |
class-wp-block-type-registry.php | File | 5013 bytes | October 13 2023 06:16:03. | |
class-wp-block-type.php | File | 14301 bytes | September 13 2023 04:25:41. | |
class-wp-block.php | File | 8402 bytes | September 13 2023 04:25:42. | |
class-wp-classic-to-block-menu-converter.php | File | 4088 bytes | September 13 2023 04:25:42. | |
class-wp-comment-query.php | File | 47829 bytes | September 13 2023 04:25:41. | |
class-wp-comment.php | File | 9357 bytes | September 13 2023 04:25:41. | |
class-wp-customize-control.php | File | 25843 bytes | September 13 2023 04:25:41. | |
class-wp-customize-manager.php | File | 202163 bytes | September 13 2023 04:25:41. | |
class-wp-customize-nav-menus.php | File | 57304 bytes | September 13 2023 04:25:41. | |
class-wp-customize-panel.php | File | 10671 bytes | September 13 2023 04:25:41. | |
class-wp-customize-section.php | File | 11245 bytes | September 13 2023 04:25:42. | |
class-wp-customize-setting.php | File | 29890 bytes | September 13 2023 04:25:41. | |
class-wp-customize-widgets.php | File | 71633 bytes | September 13 2023 04:25:41. | |
class-wp-date-query.php | File | 35719 bytes | September 13 2023 04:25:42. | |
class-wp-dependencies.php | File | 14063 bytes | September 13 2023 04:25:42. | |
class-wp-dependency.php | File | 2627 bytes | September 13 2023 04:25:42. | |
class-wp-duotone.php | File | 39362 bytes | September 13 2023 04:25:41. | |
class-wp-editor.php | File | 72084 bytes | September 13 2023 04:25:42. | |
class-wp-embed.php | File | 15994 bytes | September 13 2023 04:25:42. | |
class-wp-error.php | File | 7502 bytes | September 13 2023 04:25:41. | |
class-wp-fatal-error-handler.php | File | 7872 bytes | September 13 2023 04:25:41. | |
class-wp-feed-cache-transient.php | File | 2586 bytes | September 13 2023 04:25:41. | |
class-wp-feed-cache.php | File | 996 bytes | September 13 2023 04:25:41. | |
class-wp-hook.php | File | 15628 bytes | September 13 2023 04:25:41. | |
class-wp-http-cookie.php | File | 7389 bytes | September 13 2023 04:25:41. | |
class-wp-http-curl.php | File | 12492 bytes | September 13 2023 04:25:41. | |
class-wp-http-encoding.php | File | 6689 bytes | September 13 2023 04:25:41. | |
class-wp-http-ixr-client.php | File | 3501 bytes | September 13 2023 04:25:41. | |
class-wp-http-proxy.php | File | 5980 bytes | September 13 2023 04:25:42. | |
class-wp-http-requests-hooks.php | File | 2022 bytes | September 13 2023 04:25:41. | |
class-wp-http-requests-response.php | File | 4400 bytes | September 13 2023 04:25:41. | |
class-wp-http-response.php | File | 2977 bytes | September 13 2023 04:25:41. | |
class-wp-http-streams.php | File | 16810 bytes | September 13 2023 04:25:42. | |
class-wp-http.php | File | 40350 bytes | September 13 2023 04:25:41. | |
class-wp-image-editor-gd.php | File | 16623 bytes | September 13 2023 04:25:41. | |
class-wp-image-editor-imagick.php | File | 29990 bytes | September 13 2023 04:25:41. | |
class-wp-image-editor.php | File | 17133 bytes | September 13 2023 04:25:42. | |
class-wp-list-util.php | File | 7443 bytes | September 13 2023 04:25:41. | |
class-wp-locale-switcher.php | File | 6561 bytes | September 13 2023 04:25:41. | |
class-wp-locale.php | File | 16115 bytes | September 13 2023 04:25:41. | |
class-wp-matchesmapregex.php | File | 1826 bytes | September 13 2023 04:25:41. | |
class-wp-meta-query.php | File | 30533 bytes | September 13 2023 04:25:41. | |
class-wp-metadata-lazyloader.php | File | 6833 bytes | September 13 2023 04:25:41. | |
class-wp-navigation-fallback.php | File | 6980 bytes | September 13 2023 04:25:41. | |
class-wp-network-query.php | File | 19291 bytes | September 13 2023 04:25:41. | |
class-wp-network.php | File | 12189 bytes | September 13 2023 04:25:41. | |
class-wp-object-cache.php | File | 17594 bytes | September 13 2023 04:25:42. | |
class-wp-oembed-controller.php | File | 6879 bytes | September 13 2023 04:25:42. | |
class-wp-oembed.php | File | 31394 bytes | September 13 2023 04:25:42. | |
class-wp-paused-extensions-storage.php | File | 5062 bytes | September 13 2023 04:25:41. | |
class-wp-post-type.php | File | 25964 bytes | September 13 2023 04:25:42. | |
class-wp-post.php | File | 6484 bytes | September 13 2023 04:25:41. | |
class-wp-query.php | File | 150699 bytes | September 13 2023 04:25:41. | |
class-wp-recovery-mode-cookie-service.php | File | 6877 bytes | September 13 2023 04:25:41. | |
class-wp-recovery-mode-email-service.php | File | 11183 bytes | September 13 2023 04:25:41. | |
class-wp-recovery-mode-key-service.php | File | 4501 bytes | September 13 2023 04:25:41. | |
class-wp-recovery-mode-link-service.php | File | 3463 bytes | September 13 2023 04:25:41. | |
class-wp-recovery-mode.php | File | 11435 bytes | September 13 2023 04:25:41. | |
class-wp-rewrite.php | File | 63038 bytes | September 13 2023 04:25:41. | |
class-wp-role.php | File | 2524 bytes | September 13 2023 04:25:42. | |
class-wp-roles.php | File | 8578 bytes | September 13 2023 04:25:41. | |
class-wp-scripts.php | File | 28351 bytes | September 13 2023 04:25:41. | |
class-wp-session-tokens.php | File | 7451 bytes | September 13 2023 04:25:41. | |
class-wp-simplepie-file.php | File | 3403 bytes | September 13 2023 04:25:42. | |
class-wp-simplepie-sanitize-kses.php | File | 1800 bytes | September 13 2023 04:25:41. | |
class-wp-site-query.php | File | 31020 bytes | September 13 2023 04:25:42. | |
class-wp-site.php | File | 7454 bytes | September 13 2023 04:25:41. | |
class-wp-styles.php | File | 10898 bytes | September 13 2023 04:25:41. | |
class-wp-tax-query.php | File | 19545 bytes | September 13 2023 04:25:42. | |
class-wp-taxonomy.php | File | 18567 bytes | September 13 2023 04:25:41. | |
class-wp-term-query.php | File | 40451 bytes | September 13 2023 04:25:42. | |
class-wp-term.php | File | 5298 bytes | September 13 2023 04:25:41. | |
class-wp-text-diff-renderer-inline.php | File | 830 bytes | September 13 2023 04:25:41. | |
class-wp-text-diff-renderer-table.php | File | 17187 bytes | September 13 2023 04:25:41. | |
class-wp-textdomain-registry.php | File | 5976 bytes | September 13 2023 04:25:41. | |
class-wp-theme-json-data.php | File | 1554 bytes | September 13 2023 04:25:41. | |
class-wp-theme-json-resolver.php | File | 24669 bytes | September 13 2023 04:25:41. | |
class-wp-theme-json-schema.php | File | 4301 bytes | September 13 2023 04:25:41. | |
class-wp-theme-json.php | File | 129295 bytes | October 13 2023 06:16:03. | |
class-wp-theme.php | File | 56188 bytes | October 13 2023 06:16:03. | |
class-wp-user-meta-session-tokens.php | File | 2990 bytes | August 05 2020 08:21:22. | |
class-wp-user-query.php | File | 42242 bytes | September 13 2023 04:25:41. | |
class-wp-user-request.php | File | 2222 bytes | September 13 2023 04:25:41. | |
class-wp-user.php | File | 22762 bytes | September 13 2023 04:25:41. | |
class-wp-walker.php | File | 13167 bytes | September 13 2023 04:25:41. | |
class-wp-widget-factory.php | File | 3347 bytes | September 13 2023 04:25:42. | |
class-wp-widget.php | File | 18383 bytes | September 13 2023 04:25:42. | |
class-wp-xmlrpc-server.php | File | 214130 bytes | September 13 2023 04:25:41. | |
class-wp.php | File | 25978 bytes | September 13 2023 04:25:41. | |
class-wpdb.php | File | 120418 bytes | September 13 2023 04:25:41. | |
class.wp-dependencies.php | File | 373 bytes | September 13 2023 04:25:42. | |
class.wp-scripts.php | File | 343 bytes | September 13 2023 04:25:42. | |
class.wp-styles.php | File | 338 bytes | September 13 2023 04:25:42. | |
comment-template.php | File | 101319 bytes | September 13 2023 04:25:41. | |
comment.php | File | 128537 bytes | September 13 2023 04:25:41. | |
compat.php | File | 15219 bytes | September 13 2023 04:25:41. | |
cron.php | File | 41540 bytes | September 13 2023 04:25:41. | |
date-long.php | File | 1000 bytes | September 13 2023 04:25:41. | |
date.php | File | 400 bytes | September 13 2023 04:25:41. | |
default-constants.php | File | 10981 bytes | September 13 2023 04:25:41. | |
default-filters.php | File | 33016 bytes | October 13 2023 06:16:03. | |
default-widgets.php | File | 2222 bytes | September 13 2023 04:25:42. | |
deprecated.php | File | 159498 bytes | September 13 2023 04:25:41. | |
embed-template.php | File | 338 bytes | September 13 2023 04:25:41. | |
embed.php | File | 37470 bytes | September 13 2023 04:25:42. | |
error-protection.php | File | 4121 bytes | September 13 2023 04:25:42. | |
feed-atom-comments.php | File | 5448 bytes | September 13 2023 04:25:42. | |
feed-atom.php | File | 3048 bytes | September 13 2023 04:25:41. | |
feed-rdf.php | File | 2668 bytes | August 05 2020 08:21:22. | |
feed-rss.php | File | 1189 bytes | August 05 2020 08:21:23. | |
feed-rss2-comments.php | File | 4080 bytes | September 13 2023 04:25:42. | |
feed-rss2.php | File | 3799 bytes | August 05 2020 08:21:22. | |
feed.php | File | 23057 bytes | September 13 2023 04:25:42. | |
formatting.php | File | 334312 bytes | June 24 2024 20:05:07. | |
functions.php | File | 265650 bytes | June 24 2024 20:05:07. | |
functions.wp-scripts.php | File | 14758 bytes | September 13 2023 04:25:42. | |
functions.wp-styles.php | File | 8583 bytes | September 13 2023 04:25:42. | |
general-template.php | File | 167726 bytes | September 13 2023 04:25:42. | |
global-styles-and-settings.php | File | 18842 bytes | September 13 2023 04:25:41. | |
http.php | File | 23848 bytes | September 13 2023 04:25:42. | |
https-detection.php | File | 6505 bytes | September 13 2023 04:25:41. | |
https-migration.php | File | 4741 bytes | September 13 2023 04:25:42. | |
kses.php | File | 71670 bytes | September 13 2023 04:25:41. | |
l10n.php | File | 62783 bytes | September 13 2023 04:25:42. | |
link-template.php | File | 154510 bytes | September 13 2023 04:25:41. | |
load.php | File | 53954 bytes | September 13 2023 04:25:42. | |
locale.php | File | 162 bytes | August 05 2020 08:21:22. | |
media-template.php | File | 61601 bytes | September 13 2023 04:25:42. | |
media.php | File | 205173 bytes | October 13 2023 06:16:03. | |
meta.php | File | 63276 bytes | September 13 2023 04:25:42. | |
ms-blogs.php | File | 25628 bytes | September 13 2023 04:25:42. | |
ms-default-constants.php | File | 4900 bytes | September 13 2023 04:25:42. | |
ms-default-filters.php | File | 6636 bytes | September 13 2023 04:25:41. | |
ms-deprecated.php | File | 21758 bytes | September 13 2023 04:25:41. | |
ms-files.php | File | 2652 bytes | September 13 2023 04:25:41. | |
ms-functions.php | File | 91258 bytes | September 13 2023 04:25:42. | |
ms-load.php | File | 19870 bytes | September 13 2023 04:25:41. | |
ms-network.php | File | 3782 bytes | September 13 2023 04:25:41. | |
ms-settings.php | File | 4124 bytes | September 13 2023 04:25:42. | |
ms-site.php | File | 40476 bytes | September 13 2023 04:25:41. | |
nav-menu-template.php | File | 25785 bytes | September 13 2023 04:25:42. | |
nav-menu.php | File | 44078 bytes | September 13 2023 04:25:41. | |
navigation-fallback.php | File | 2298 bytes | September 13 2023 04:25:41. | |
option.php | File | 80051 bytes | September 13 2023 04:25:42. | |
pluggable-deprecated.php | File | 6263 bytes | August 05 2020 08:21:22. | |
pluggable.php | File | 111475 bytes | September 13 2023 04:25:41. | |
plugin.php | File | 35465 bytes | September 13 2023 04:25:41. | |
post-formats.php | File | 7100 bytes | September 13 2023 04:25:41. | |
post-template.php | File | 66904 bytes | September 13 2023 04:25:41. | |
post-thumbnail-template.php | File | 10308 bytes | September 13 2023 04:25:42. | |
post.php | File | 274389 bytes | October 13 2023 06:16:03. | |
query.php | File | 37032 bytes | September 13 2023 04:25:41. | |
registration-functions.php | File | 200 bytes | September 13 2023 04:25:41. | |
registration.php | File | 200 bytes | September 13 2023 04:25:41. | |
rest-api.php | File | 97068 bytes | October 13 2023 06:16:03. | |
revision.php | File | 25433 bytes | September 13 2023 04:25:41. | |
rewrite.php | File | 19514 bytes | September 13 2023 04:25:41. | |
robots-template.php | File | 5185 bytes | September 13 2023 04:25:41. | |
rss-functions.php | File | 255 bytes | September 13 2023 04:25:41. | |
rss.php | File | 23015 bytes | September 13 2023 04:25:41. | |
script-loader.php | File | 137080 bytes | September 13 2023 04:25:41. | |
session.php | File | 258 bytes | August 05 2020 08:21:23. | |
shortcodes.php | File | 23854 bytes | October 13 2023 06:16:03. | |
sitemaps.php | File | 3238 bytes | September 13 2023 04:25:42. | |
spl-autoload-compat.php | File | 441 bytes | September 13 2023 04:25:41. | |
style-engine.php | File | 7198 bytes | September 13 2023 04:25:42. | |
taxonomy.php | File | 172884 bytes | September 13 2023 04:25:41. | |
template-canvas.php | File | 592 bytes | September 13 2023 04:25:42. | |
template-loader.php | File | 3012 bytes | September 13 2023 04:25:41. | |
template.php | File | 23327 bytes | September 13 2023 04:25:41. | |
theme-i18n.json | File | 1151 bytes | September 13 2023 04:25:41. | |
theme-previews.php | File | 2826 bytes | October 13 2023 06:16:03. | |
theme-templates.php | File | 5522 bytes | September 13 2023 04:25:42. | |
theme.json | File | 7203 bytes | September 13 2023 04:25:42. | |
theme.php | File | 130874 bytes | September 13 2023 04:25:42. | |
update.php | File | 36755 bytes | September 13 2023 04:25:41. | |
user.php | File | 170915 bytes | September 13 2023 04:25:41. | |
vars.php | File | 5838 bytes | September 13 2023 04:25:42. | |
version.php | File | 928 bytes | June 24 2024 20:05:07. | |
widgets.php | File | 69875 bytes | September 13 2023 04:25:42. | |
wp-db.php | File | 445 bytes | September 13 2023 04:25:41. | |
wp-diff.php | File | 647 bytes | August 05 2020 08:21:23. |
<?php /** * Author Template functions for use in themes. * * These functions must be used within the WordPress Loop. * * @link https://codex.wordpress.org/Author_Templates * * @package WordPress * @subpackage Template */ /** * Retrieves the author of the current post. * * @since 1.5.0 * @since 6.3.0 Returns an empty string if the author's display name is unknown. * * @global WP_User $authordata The current author's data. * * @param string $deprecated Deprecated. * @return string The author's display name, empty string if unknown. */ function get_the_author( $deprecated = '' ) { global $authordata; if ( ! empty( $deprecated ) ) { _deprecated_argument( __FUNCTION__, '2.1.0' ); } /** * Filters the display name of the current post's author. * * @since 2.9.0 * * @param string $display_name The author's display name. */ return apply_filters( 'the_author', is_object( $authordata ) ? $authordata->display_name : '' ); } /** * Displays the name of the author of the current post. * * The behavior of this function is based off of old functionality predating * get_the_author(). This function is not deprecated, but is designed to echo * the value from get_the_author() and as an result of any old theme that might * still use the old behavior will also pass the value from get_the_author(). * * The normal, expected behavior of this function is to echo the author and not * return it. However, backward compatibility has to be maintained. * * @since 0.71 * * @see get_the_author() * @link https://developer.wordpress.org/reference/functions/the_author/ * * @param string $deprecated Deprecated. * @param bool $deprecated_echo Deprecated. Use get_the_author(). Echo the string or return it. * @return string The author's display name, from get_the_author(). */ function the_author( $deprecated = '', $deprecated_echo = true ) { if ( ! empty( $deprecated ) ) { _deprecated_argument( __FUNCTION__, '2.1.0' ); } if ( true !== $deprecated_echo ) { _deprecated_argument( __FUNCTION__, '1.5.0', sprintf( /* translators: %s: get_the_author() */ __( 'Use %s instead if you do not want the value echoed.' ), '<code>get_the_author()</code>' ) ); } if ( $deprecated_echo ) { echo get_the_author(); } return get_the_author(); } /** * Retrieves the author who last edited the current post. * * @since 2.8.0 * * @return string|void The author's display name, empty string if unknown. */ function get_the_modified_author() { $last_id = get_post_meta( get_post()->ID, '_edit_last', true ); if ( $last_id ) { $last_user = get_userdata( $last_id ); /** * Filters the display name of the author who last edited the current post. * * @since 2.8.0 * * @param string $display_name The author's display name, empty string if unknown. */ return apply_filters( 'the_modified_author', $last_user ? $last_user->display_name : '' ); } } /** * Displays the name of the author who last edited the current post, * if the author's ID is available. * * @since 2.8.0 * * @see get_the_author() */ function the_modified_author() { echo get_the_modified_author(); } /** * Retrieves the requested data of the author of the current post. * * Valid values for the `$field` parameter include: * * - admin_color * - aim * - comment_shortcuts * - description * - display_name * - first_name * - ID * - jabber * - last_name * - nickname * - plugins_last_view * - plugins_per_page * - rich_editing * - syntax_highlighting * - user_activation_key * - user_description * - user_email * - user_firstname * - user_lastname * - user_level * - user_login * - user_nicename * - user_pass * - user_registered * - user_status * - user_url * - yim * * @since 2.8.0 * * @global WP_User $authordata The current author's data. * * @param string $field Optional. The user field to retrieve. Default empty. * @param int|false $user_id Optional. User ID. Defaults to the current post author. * @return string The author's field from the current author's DB object, otherwise an empty string. */ function get_the_author_meta( $field = '', $user_id = false ) { $original_user_id = $user_id; if ( ! $user_id ) { global $authordata; $user_id = isset( $authordata->ID ) ? $authordata->ID : 0; } else { $authordata = get_userdata( $user_id ); } if ( in_array( $field, array( 'login', 'pass', 'nicename', 'email', 'url', 'registered', 'activation_key', 'status' ), true ) ) { $field = 'user_' . $field; } $value = isset( $authordata->$field ) ? $authordata->$field : ''; /** * Filters the value of the requested user metadata. * * The filter name is dynamic and depends on the $field parameter of the function. * * @since 2.8.0 * @since 4.3.0 The `$original_user_id` parameter was added. * * @param string $value The value of the metadata. * @param int $user_id The user ID for the value. * @param int|false $original_user_id The original user ID, as passed to the function. */ return apply_filters( "get_the_author_{$field}", $value, $user_id, $original_user_id ); } /** * Outputs the field from the user's DB object. Defaults to current post's author. * * @since 2.8.0 * * @param string $field Selects the field of the users record. See get_the_author_meta() * for the list of possible fields. * @param int|false $user_id Optional. User ID. Defaults to the current post author. * * @see get_the_author_meta() */ function the_author_meta( $field = '', $user_id = false ) { $author_meta = get_the_author_meta( $field, $user_id ); /** * Filters the value of the requested user metadata. * * The filter name is dynamic and depends on the $field parameter of the function. * * @since 2.8.0 * * @param string $author_meta The value of the metadata. * @param int|false $user_id The user ID. */ echo apply_filters( "the_author_{$field}", $author_meta, $user_id ); } /** * Retrieves either author's link or author's name. * * If the author has a home page set, return an HTML link, otherwise just return * the author's name. * * @since 3.0.0 * * @global WP_User $authordata The current author's data. * * @return string An HTML link if the author's URL exists in user meta, * otherwise the result of get_the_author(). */ function get_the_author_link() { if ( get_the_author_meta( 'url' ) ) { global $authordata; $author_url = get_the_author_meta( 'url' ); $author_display_name = get_the_author(); $link = sprintf( '<a href="%1$s" title="%2$s" rel="author external">%3$s</a>', esc_url( $author_url ), /* translators: %s: Author's display name. */ esc_attr( sprintf( __( 'Visit %s’s website' ), $author_display_name ) ), $author_display_name ); /** * Filters the author URL link HTML. * * @since 6.0.0 * * @param string $link The default rendered author HTML link. * @param string $author_url Author's URL. * @param WP_User $authordata Author user data. */ return apply_filters( 'the_author_link', $link, $author_url, $authordata ); } else { return get_the_author(); } } /** * Displays either author's link or author's name. * * If the author has a home page set, echo an HTML link, otherwise just echo the * author's name. * * @link https://developer.wordpress.org/reference/functions/the_author_link/ * * @since 2.1.0 */ function the_author_link() { echo get_the_author_link(); } /** * Retrieves the number of posts by the author of the current post. * * @since 1.5.0 * * @return int The number of posts by the author. */ function get_the_author_posts() { $post = get_post(); if ( ! $post ) { return 0; } return count_user_posts( $post->post_author, $post->post_type ); } /** * Displays the number of posts by the author of the current post. * * @link https://developer.wordpress.org/reference/functions/the_author_posts/ * @since 0.71 */ function the_author_posts() { echo get_the_author_posts(); } /** * Retrieves an HTML link to the author page of the current post's author. * * Returns an HTML-formatted link using get_author_posts_url(). * * @since 4.4.0 * * @global WP_User $authordata The current author's data. * * @return string An HTML link to the author page, or an empty string if $authordata is not set. */ function get_the_author_posts_link() { global $authordata; if ( ! is_object( $authordata ) ) { return ''; } $link = sprintf( '<a href="%1$s" title="%2$s" rel="author">%3$s</a>', esc_url( get_author_posts_url( $authordata->ID, $authordata->user_nicename ) ), /* translators: %s: Author's display name. */ esc_attr( sprintf( __( 'Posts by %s' ), get_the_author() ) ), get_the_author() ); /** * Filters the link to the author page of the author of the current post. * * @since 2.9.0 * * @param string $link HTML link. */ return apply_filters( 'the_author_posts_link', $link ); } /** * Displays an HTML link to the author page of the current post's author. * * @since 1.2.0 * @since 4.4.0 Converted into a wrapper for get_the_author_posts_link() * * @param string $deprecated Unused. */ function the_author_posts_link( $deprecated = '' ) { if ( ! empty( $deprecated ) ) { _deprecated_argument( __FUNCTION__, '2.1.0' ); } echo get_the_author_posts_link(); } /** * Retrieves the URL to the author page for the user with the ID provided. * * @since 2.1.0 * * @global WP_Rewrite $wp_rewrite WordPress rewrite component. * * @param int $author_id Author ID. * @param string $author_nicename Optional. The author's nicename (slug). Default empty. * @return string The URL to the author's page. */ function get_author_posts_url( $author_id, $author_nicename = '' ) { global $wp_rewrite; $author_id = (int) $author_id; $link = $wp_rewrite->get_author_permastruct(); if ( empty( $link ) ) { $file = home_url( '/' ); $link = $file . '?author=' . $author_id; } else { if ( '' === $author_nicename ) { $user = get_userdata( $author_id ); if ( ! empty( $user->user_nicename ) ) { $author_nicename = $user->user_nicename; } } $link = str_replace( '%author%', $author_nicename, $link ); $link = home_url( user_trailingslashit( $link ) ); } /** * Filters the URL to the author's page. * * @since 2.1.0 * * @param string $link The URL to the author's page. * @param int $author_id The author's ID. * @param string $author_nicename The author's nice name. */ $link = apply_filters( 'author_link', $link, $author_id, $author_nicename ); return $link; } /** * Lists all the authors of the site, with several options available. * * @link https://developer.wordpress.org/reference/functions/wp_list_authors/ * * @since 1.2.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @param string|array $args { * Optional. Array or string of default arguments. * * @type string $orderby How to sort the authors. Accepts 'nicename', 'email', 'url', 'registered', * 'user_nicename', 'user_email', 'user_url', 'user_registered', 'name', * 'display_name', 'post_count', 'ID', 'meta_value', 'user_login'. Default 'name'. * @type string $order Sorting direction for $orderby. Accepts 'ASC', 'DESC'. Default 'ASC'. * @type int $number Maximum authors to return or display. Default empty (all authors). * @type bool $optioncount Show the count in parenthesis next to the author's name. Default false. * @type bool $exclude_admin Whether to exclude the 'admin' account, if it exists. Default true. * @type bool $show_fullname Whether to show the author's full name. Default false. * @type bool $hide_empty Whether to hide any authors with no posts. Default true. * @type string $feed If not empty, show a link to the author's feed and use this text as the alt * parameter of the link. Default empty. * @type string $feed_image If not empty, show a link to the author's feed and use this image URL as * clickable anchor. Default empty. * @type string $feed_type The feed type to link to. Possible values include 'rss2', 'atom'. * Default is the value of get_default_feed(). * @type bool $echo Whether to output the result or instead return it. Default true. * @type string $style If 'list', each author is wrapped in an `<li>` element, otherwise the authors * will be separated by commas. * @type bool $html Whether to list the items in HTML form or plaintext. Default true. * @type int[]|string $exclude Array or comma/space-separated list of author IDs to exclude. Default empty. * @type int[]|string $include Array or comma/space-separated list of author IDs to include. Default empty. * } * @return void|string Void if 'echo' argument is true, list of authors if 'echo' is false. */ function wp_list_authors( $args = '' ) { global $wpdb; $defaults = array( 'orderby' => 'name', 'order' => 'ASC', 'number' => '', 'optioncount' => false, 'exclude_admin' => true, 'show_fullname' => false, 'hide_empty' => true, 'feed' => '', 'feed_image' => '', 'feed_type' => '', 'echo' => true, 'style' => 'list', 'html' => true, 'exclude' => '', 'include' => '', ); $parsed_args = wp_parse_args( $args, $defaults ); $return = ''; $query_args = wp_array_slice_assoc( $parsed_args, array( 'orderby', 'order', 'number', 'exclude', 'include' ) ); $query_args['fields'] = 'ids'; /** * Filters the query arguments for the list of all authors of the site. * * @since 6.1.0 * * @param array $query_args The query arguments for get_users(). * @param array $parsed_args The arguments passed to wp_list_authors() combined with the defaults. */ $query_args = apply_filters( 'wp_list_authors_args', $query_args, $parsed_args ); $authors = get_users( $query_args ); $post_counts = array(); /** * Filters whether to short-circuit performing the query for author post counts. * * @since 6.1.0 * * @param int[]|false $post_counts Array of post counts, keyed by author ID. * @param array $parsed_args The arguments passed to wp_list_authors() combined with the defaults. */ $post_counts = apply_filters( 'pre_wp_list_authors_post_counts_query', false, $parsed_args ); if ( ! is_array( $post_counts ) ) { $post_counts = array(); $post_counts_query = $wpdb->get_results( "SELECT DISTINCT post_author, COUNT(ID) AS count FROM $wpdb->posts WHERE " . get_private_posts_cap_sql( 'post' ) . ' GROUP BY post_author' ); foreach ( (array) $post_counts_query as $row ) { $post_counts[ $row->post_author ] = $row->count; } } foreach ( $authors as $author_id ) { $posts = isset( $post_counts[ $author_id ] ) ? $post_counts[ $author_id ] : 0; if ( ! $posts && $parsed_args['hide_empty'] ) { continue; } $author = get_userdata( $author_id ); if ( $parsed_args['exclude_admin'] && 'admin' === $author->display_name ) { continue; } if ( $parsed_args['show_fullname'] && $author->first_name && $author->last_name ) { $name = sprintf( /* translators: 1: User's first name, 2: Last name. */ _x( '%1$s %2$s', 'Display name based on first name and last name' ), $author->first_name, $author->last_name ); } else { $name = $author->display_name; } if ( ! $parsed_args['html'] ) { $return .= $name . ', '; continue; // No need to go further to process HTML. } if ( 'list' === $parsed_args['style'] ) { $return .= '<li>'; } $link = sprintf( '<a href="%1$s" title="%2$s">%3$s</a>', esc_url( get_author_posts_url( $author->ID, $author->user_nicename ) ), /* translators: %s: Author's display name. */ esc_attr( sprintf( __( 'Posts by %s' ), $author->display_name ) ), $name ); if ( ! empty( $parsed_args['feed_image'] ) || ! empty( $parsed_args['feed'] ) ) { $link .= ' '; if ( empty( $parsed_args['feed_image'] ) ) { $link .= '('; } $link .= '<a href="' . get_author_feed_link( $author->ID, $parsed_args['feed_type'] ) . '"'; $alt = ''; if ( ! empty( $parsed_args['feed'] ) ) { $alt = ' alt="' . esc_attr( $parsed_args['feed'] ) . '"'; $name = $parsed_args['feed']; } $link .= '>'; if ( ! empty( $parsed_args['feed_image'] ) ) { $link .= '<img src="' . esc_url( $parsed_args['feed_image'] ) . '" style="border: none;"' . $alt . ' />'; } else { $link .= $name; } $link .= '</a>'; if ( empty( $parsed_args['feed_image'] ) ) { $link .= ')'; } } if ( $parsed_args['optioncount'] ) { $link .= ' (' . $posts . ')'; } $return .= $link; $return .= ( 'list' === $parsed_args['style'] ) ? '</li>' : ', '; } $return = rtrim( $return, ', ' ); if ( $parsed_args['echo'] ) { echo $return; } else { return $return; } } /** * Determines whether this site has more than one author. * * Checks to see if more than one author has published posts. * * For more information on this and similar theme functions, check out * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ * Conditional Tags} article in the Theme Developer Handbook. * * @since 3.2.0 * * @global wpdb $wpdb WordPress database abstraction object. * * @return bool Whether or not we have more than one author */ function is_multi_author() { global $wpdb; $is_multi_author = get_transient( 'is_multi_author' ); if ( false === $is_multi_author ) { $rows = (array) $wpdb->get_col( "SELECT DISTINCT post_author FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish' LIMIT 2" ); $is_multi_author = 1 < count( $rows ) ? 1 : 0; set_transient( 'is_multi_author', $is_multi_author ); } /** * Filters whether the site has more than one author with published posts. * * @since 3.2.0 * * @param bool $is_multi_author Whether $is_multi_author should evaluate as true. */ return apply_filters( 'is_multi_author', (bool) $is_multi_author ); } /** * Helper function to clear the cache for number of authors. * * @since 3.2.0 * @access private */ function __clear_multi_author_cache() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore delete_transient( 'is_multi_author' ); }
SILENT KILLER Tool