/home/desid573/public_html/magicride.ng/wp-includes
NameSizeModeActions
blocks/-0755rm
certificates/-0755rm
css/-0755rm
customize/-0755rm
fonts/-0755rm
ID3/-0755rm
images/-0755rm
IXR/-0755rm
js/-0755rm
pomo/-0755rm
random_compat/-0755rm
Requests/-0755rm
rest-api/-0755rm
SimplePie/-0755rm
sodium_compat/-0755rm
Text/-0755rm
theme-compat/-0755rm
widgets/-0755rm
admin-bar.php304350644editdlrm
atomlib.php118390644editdlrm
author-template.php166500644editdlrm
blocks.php182410644editdlrm
bookmark-template.php119180644editdlrm
bookmark.php139010644editdlrm
cache.php218740644editdlrm
canonical.php284870644editdlrm
capabilities.php317210644editdlrm
category-template.php520310644editdlrm
category.php122270644editdlrm
class-feed.php5230644editdlrm
class-http.php371410644editdlrm
class-IXR.php25730644editdlrm
class-json.php404760644editdlrm
class-oembed.php314820644editdlrm
class-phpass.php73170644editdlrm
class-phpmailer.php1482440644editdlrm
class-pop3.php209190644editdlrm
class-requests.php297900644editdlrm
class-simplepie.php892640644editdlrm
class-smtp.php394760644editdlrm
class-snoopy.php377850644editdlrm
class-walker-category-dropdown.php21270644editdlrm
class-walker-category.php77510644editdlrm
class-walker-comment.php136540644editdlrm
class-walker-nav-menu.php86420644editdlrm
class-walker-page-dropdown.php22980644editdlrm
class-walker-page.php69930644editdlrm
class-wp-admin-bar.php169200644editdlrm
class-wp-ajax-response.php51270644editdlrm
class-wp-block-parser.php152150644editdlrm
class-wp-block-type-registry.php50890644editdlrm
class-wp-block-type.php48150644editdlrm
class-wp-comment-query.php432230644editdlrm
class-wp-comment.php89610644editdlrm
class-wp-customize-control.php250530644editdlrm
class-wp-customize-manager.php2018560644editdlrm
class-wp-customize-nav-menus.php543540644editdlrm
class-wp-customize-panel.php96470644editdlrm
class-wp-customize-section.php102290644editdlrm
class-wp-customize-setting.php282430644editdlrm
class-wp-customize-widgets.php662960644editdlrm
class-wp-dependency.php23350644editdlrm
class-wp-editor.php678720644editdlrm
class-wp-embed.php147320644editdlrm
class-wp-error.php49230644editdlrm
class-wp-fatal-error-handler.php64620644editdlrm
class-wp-feed-cache-transient.php25600644editdlrm
class-wp-feed-cache.php7490644editdlrm
class-wp-hook.php141050644editdlrm
class-wp-http-cookie.php68470644editdlrm
class-wp-http-curl.php119280644editdlrm
class-wp-http-encoding.php65030644editdlrm
class-wp-http-ixr-client.php33260644editdlrm
class-wp-http-proxy.php60610644editdlrm
class-wp-http-requests-hooks.php18760644editdlrm
class-wp-http-requests-response.php43980644editdlrm
class-wp-http-response.php28710644editdlrm
class-wp-http-streams.php153850644editdlrm
class-wp-image-editor-gd.php130610644editdlrm
class-wp-image-editor-imagick.php217800644editdlrm
class-wp-image-editor.php117610644editdlrm
class-wp-list-util.php63960644editdlrm
class-wp-locale-switcher.php50260644editdlrm
class-wp-locale.php146290644editdlrm
class-wp-matchesmapregex.php18040644editdlrm
class-wp-meta-query.php234360644editdlrm
class-wp-metadata-lazyloader.php53840644editdlrm
class-wp-network-query.php178350644editdlrm
class-wp-network.php122170644editdlrm
class-wp-oembed-controller.php60240644editdlrm
class-wp-paused-extensions-storage.php49330644editdlrm
class-wp-post-type.php182360644editdlrm
class-wp-post.php64410644editdlrm
class-wp-query.php1308180644editdlrm
class-wp-recovery-mode-cookie-service.php62470644editdlrm
class-wp-recovery-mode-email-service.php79960644editdlrm
class-wp-recovery-mode-key-service.php42840644editdlrm
class-wp-recovery-mode-link-service.php33700644editdlrm
class-wp-recovery-mode.php112540644editdlrm
class-wp-rewrite.php598210644editdlrm
class-wp-role.php26610644editdlrm
class-wp-roles.php83280644editdlrm
class-wp-session-tokens.php74300644editdlrm
class-wp-simplepie-file.php23260644editdlrm
class-wp-simplepie-sanitize-kses.php17750644editdlrm
class-wp-site-query.php280380644editdlrm
class-wp-site.php73060644editdlrm
class-wp-tax-query.php194330644editdlrm
class-wp-taxonomy.php106610644editdlrm
class-wp-term-query.php346560644editdlrm
class-wp-term.php52650644editdlrm
class-wp-text-diff-renderer-inline.php7160644editdlrm
class-wp-text-diff-renderer-table.php164480644editdlrm
class-wp-theme.php503860644editdlrm
class-wp-user-meta-session-tokens.php29900644editdlrm
class-wp-user-query.php312240644editdlrm
class-wp-user.php214140644editdlrm
class-wp-walker.php126870644editdlrm
class-wp-widget-factory.php37810644editdlrm
class-wp-widget.php178340644editdlrm
class-wp-xmlrpc-server.php2078490644editdlrm
class-wp.php247540644editdlrm
class.wp-dependencies.php115120644editdlrm
class.wp-scripts.php171910644editdlrm
class.wp-styles.php98420644editdlrm
comment-template.php898690644editdlrm
comment.php1153730644editdlrm
compat.php177530644editdlrm
cron.php324600644editdlrm
date.php356180644editdlrm
default-constants.php101260644editdlrm
default-filters.php257270644editdlrm
default-widgets.php21800644editdlrm
deprecated.php1142700644editdlrm
embed-template.php3440644editdlrm
embed.php471220644editdlrm
error-protection.php33860644editdlrm
error_log5654880644editdlrm
feed-atom-comments.php53780644editdlrm
feed-atom.php30810644editdlrm
feed-rdf.php26600644editdlrm
feed-rss.php11900644editdlrm
feed-rss2-comments.php41220644editdlrm
feed-rss2.php37820644editdlrm
feed.php213800644editdlrm
formatting.php2956780644editdlrm
functions.php2199590644editdlrm
functions.wp-scripts.php128300644editdlrm
functions.wp-styles.php82190644editdlrm
general-template.php1466320644editdlrm
http.php224240644editdlrm
kses.php572330644editdlrm
l10n.php519250644editdlrm
link-template.php1384820644editdlrm
load.php431460644editdlrm
locale.php1410644editdlrm
media-template.php489220644editdlrm
media.php1447630644editdlrm
meta.php465510644editdlrm
ms-blogs.php231220644editdlrm
ms-default-constants.php47850644editdlrm
ms-default-filters.php64140644editdlrm
ms-deprecated.php199070644editdlrm
ms-files.php26490644editdlrm
ms-functions.php870590644editdlrm
ms-load.php195570644editdlrm
ms-network.php36580644editdlrm
ms-settings.php41340644editdlrm
ms-site.php430640644editdlrm
nav-menu-template.php220080644editdlrm
nav-menu.php406720644editdlrm
option.php695550644editdlrm
pluggable-deprecated.php62620644editdlrm
pluggable.php986300644editdlrm
plugin.php320680644editdlrm
post-formats.php70240644editdlrm
post-template.php617640644editdlrm
post-thumbnail-template.php89570644editdlrm
post.php2353640644editdlrm
query.php329930644editdlrm
registration-functions.php1800644editdlrm
registration.php1800644editdlrm
rest-api.php420530644editdlrm
revision.php215860644editdlrm
rewrite.php177230644editdlrm
rss-functions.php1930644editdlrm
rss.php232080644editdlrm
script-loader.php1096050644editdlrm
session.php2430644editdlrm
shortcodes.php216980644editdlrm
spl-autoload-compat.php25740644editdlrm
taxonomy.php1566550644editdlrm
template-loader.php26950644editdlrm
template.php208280644editdlrm
theme.php1023010644editdlrm
update.php253820644editdlrm
user.php1240860644editdlrm
vars.php57150644editdlrm
version.php7620644editdlrm
widgets.php572000644editdlrm
wlwmanifest.xml10450644editdlrm
wp-db.php1016200644editdlrm
wp-diff.php6620644editdlrm
Edit: /home/desid573/public_html/magicride.ng/wp-includes/post-thumbnail-template.php (8957B)
ID, '_thumbnail_id', true ); } /** * Display the post thumbnail. * * When a theme adds 'post-thumbnail' support, a special 'post-thumbnail' image size * is registered, which differs from the 'thumbnail' image size managed via the * Settings > Media screen. * * When using the_post_thumbnail() or related functions, the 'post-thumbnail' image * size is used by default, though a different size can be specified instead as needed. * * @since 2.9.0 * * @see get_the_post_thumbnail() * * @param string|array $size Optional. Image size to use. Accepts any valid image size, or * an array of width and height values in pixels (in that order). * Default 'post-thumbnail'. * @param string|array $attr Optional. Query string or array of attributes. Default empty. */ function the_post_thumbnail( $size = 'post-thumbnail', $attr = '' ) { echo get_the_post_thumbnail( null, $size, $attr ); } /** * Update cache for thumbnails in the current loop. * * @since 3.2.0 * * @global WP_Query $wp_query * * @param WP_Query $wp_query Optional. A WP_Query instance. Defaults to the $wp_query global. */ function update_post_thumbnail_cache( $wp_query = null ) { if ( ! $wp_query ) { $wp_query = $GLOBALS['wp_query']; } if ( $wp_query->thumbnails_cached ) { return; } $thumb_ids = array(); foreach ( $wp_query->posts as $post ) { if ( $id = get_post_thumbnail_id( $post->ID ) ) { $thumb_ids[] = $id; } } if ( ! empty( $thumb_ids ) ) { _prime_post_caches( $thumb_ids, false, true ); } $wp_query->thumbnails_cached = true; } /** * Retrieve the post thumbnail. * * When a theme adds 'post-thumbnail' support, a special 'post-thumbnail' image size * is registered, which differs from the 'thumbnail' image size managed via the * Settings > Media screen. * * When using the_post_thumbnail() or related functions, the 'post-thumbnail' image * size is used by default, though a different size can be specified instead as needed. * * @since 2.9.0 * @since 4.4.0 `$post` can be a post ID or WP_Post object. * * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`. * @param string|array $size Optional. Image size to use. Accepts any valid image size, or * an array of width and height values in pixels (in that order). * Default 'post-thumbnail'. * @param string|array $attr Optional. Query string or array of attributes. Default empty. * @return string The post thumbnail image tag. */ function get_the_post_thumbnail( $post = null, $size = 'post-thumbnail', $attr = '' ) { $post = get_post( $post ); if ( ! $post ) { return ''; } $post_thumbnail_id = get_post_thumbnail_id( $post ); /** * Filters the post thumbnail size. * * @since 2.9.0 * @since 4.9.0 Added the `$post_id` parameter. * * @param string|array $size The post thumbnail size. Image size or array of width and height * values (in that order). Default 'post-thumbnail'. * @param int $post_id The post ID. */ $size = apply_filters( 'post_thumbnail_size', $size, $post->ID ); if ( $post_thumbnail_id ) { /** * Fires before fetching the post thumbnail HTML. * * Provides "just in time" filtering of all filters in wp_get_attachment_image(). * * @since 2.9.0 * * @param int $post_id The post ID. * @param string $post_thumbnail_id The post thumbnail ID. * @param string|array $size The post thumbnail size. Image size or array of width * and height values (in that order). Default 'post-thumbnail'. */ do_action( 'begin_fetch_post_thumbnail_html', $post->ID, $post_thumbnail_id, $size ); if ( in_the_loop() ) { update_post_thumbnail_cache(); } $html = wp_get_attachment_image( $post_thumbnail_id, $size, false, $attr ); /** * Fires after fetching the post thumbnail HTML. * * @since 2.9.0 * * @param int $post_id The post ID. * @param string $post_thumbnail_id The post thumbnail ID. * @param string|array $size The post thumbnail size. Image size or array of width * and height values (in that order). Default 'post-thumbnail'. */ do_action( 'end_fetch_post_thumbnail_html', $post->ID, $post_thumbnail_id, $size ); } else { $html = ''; } /** * Filters the post thumbnail HTML. * * @since 2.9.0 * * @param string $html The post thumbnail HTML. * @param int $post_id The post ID. * @param string $post_thumbnail_id The post thumbnail ID. * @param string|array $size The post thumbnail size. Image size or array of width and height * values (in that order). Default 'post-thumbnail'. * @param string $attr Query string of attributes. */ return apply_filters( 'post_thumbnail_html', $html, $post->ID, $post_thumbnail_id, $size, $attr ); } /** * Return the post thumbnail URL. * * @since 4.4.0 * * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`. * @param string|array $size Optional. Registered image size to retrieve the source for or a flat * array of height and width dimensions. Default 'post-thumbnail'. * @return string|false Post thumbnail URL or false if no URL is available. */ function get_the_post_thumbnail_url( $post = null, $size = 'post-thumbnail' ) { $post_thumbnail_id = get_post_thumbnail_id( $post ); if ( ! $post_thumbnail_id ) { return false; } return wp_get_attachment_image_url( $post_thumbnail_id, $size ); } /** * Display the post thumbnail URL. * * @since 4.4.0 * * @param string|array $size Optional. Image size to use. Accepts any valid image size, * or an array of width and height values in pixels (in that order). * Default 'post-thumbnail'. */ function the_post_thumbnail_url( $size = 'post-thumbnail' ) { $url = get_the_post_thumbnail_url( null, $size ); if ( $url ) { echo esc_url( $url ); } } /** * Returns the post thumbnail caption. * * @since 4.6.0 * * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`. * @return string Post thumbnail caption. */ function get_the_post_thumbnail_caption( $post = null ) { $post_thumbnail_id = get_post_thumbnail_id( $post ); if ( ! $post_thumbnail_id ) { return ''; } $caption = wp_get_attachment_caption( $post_thumbnail_id ); if ( ! $caption ) { $caption = ''; } return $caption; } /** * Displays the post thumbnail caption. * * @since 4.6.0 * * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`. */ function the_post_thumbnail_caption( $post = null ) { /** * Filters the displayed post thumbnail caption. * * @since 4.6.0 * * @param string $caption Caption for the given attachment. */ echo apply_filters( 'the_post_thumbnail_caption', get_the_post_thumbnail_caption( $post ) ); }