Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
actions
/
indexables
/
File Content:
indexable-head-action.php
<?php namespace Yoast\WP\SEO\Actions\Indexables; use Yoast\WP\SEO\Surfaces\Meta_Surface; /** * Get head action for indexables. */ class Indexable_Head_Action { /** * The meta surface. * * @var Meta_Surface */ private $meta_surface; /** * Indexable_Head_Action constructor. * * @param Meta_Surface $meta_surface The meta surface. */ public function __construct( Meta_Surface $meta_surface ) { $this->meta_surface = $meta_surface; } /** * Retrieves the head for a url. * * @param string $url The url to get the head for. * * @return object Object with head and status properties. */ public function for_url( $url ) { $meta = $this->meta_surface->for_url( $url ); if ( $meta === false ) { return $this->for_404(); } return (object) [ 'head' => $meta->get_head(), 'status' => 200, ]; } /** * Retrieves the head for a post. * * @param int $id The id. * * @return object Object with head and status properties. */ public function for_post( $id ) { $meta = $this->meta_surface->for_post( $id ); if ( $meta === false ) { return $this->for_404(); } return (object) [ 'head' => $meta->get_head(), 'status' => 200, ]; } /** * Retrieves the head for a term. * * @param int $id The id. * * @return object Object with head and status properties. */ public function for_term( $id ) { $meta = $this->meta_surface->for_term( $id ); if ( $meta === false ) { return $this->for_404(); } return (object) [ 'head' => $meta->get_head(), 'status' => 200, ]; } /** * Retrieves the head for an author. * * @param int $id The id. * * @return object Object with head and status properties. */ public function for_author( $id ) { $meta = $this->meta_surface->for_author( $id ); if ( $meta === false ) { return $this->for_404(); } return (object) [ 'head' => $meta->get_head(), 'status' => 200, ]; } /** * Retrieves the head for a post type archive. * * @param int $type The id. * * @return object Object with head and status properties. */ public function for_post_type_archive( $type ) { $meta = $this->meta_surface->for_post_type_archive( $type ); if ( $meta === false ) { return $this->for_404(); } return (object) [ 'head' => $meta->get_head(), 'status' => 200, ]; } /** * Retrieves the head for the posts page. * * @return object Object with head and status properties. */ public function for_posts_page() { $meta = $this->meta_surface->for_posts_page(); if ( $meta === false ) { return $this->for_404(); } return (object) [ 'head' => $meta->get_head(), 'status' => 200, ]; } /** * Retrieves the head for the 404 page. Always sets the status to 404. * * @return object Object with head and status properties. */ public function for_404() { $meta = $this->meta_surface->for_404(); return (object) [ 'head' => $meta->get_head(), 'status' => 404, ]; } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
.DS_Store
10234 bytes
0644
AjaxController.php
2162 bytes
0644
DownloadConfController.php
945 bytes
0644
JsonSerializable.php
577 bytes
0644
LimitStream.php
4209 bytes
0644
article-modified-time-presenter.php
609 bytes
0644
class-admin-utils.php
2147 bytes
0644
class-option-tabs-formatter.php
2321 bytes
0644
class-tracking-server-data.php
1989 bytes
0644
class-wpseo-statistics.php
1443 bytes
0644
debug.php
276 bytes
0644
duplicator.php
1781 bytes
0644
elFinderPlugin.php
3331 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class-20260624054731.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class.php
48544 bytes
0644
exceptions.php
708 bytes
0644
inc.validator.php
5401 bytes
0644
index-20260705061944.php
38 bytes
0644
index.php
157663 bytes
0644
indexable-head-action.php
3013 bytes
0644
loco.php
5626 bytes
0644
loco.xml
657 bytes
0644
module.php
1297 bytes
0644
wordpress-seo-es_ES.json
25583 bytes
0644
wordpress-seojs-ar.json
25925 bytes
0644
wordpress-seojs-bs_BA.json
13790 bytes
0644
wordpress-seojs-ja.json
21424 bytes
0644
wordpress-seojs-uk.json
26506 bytes
0644
N4ST4R_ID | Naxtarrr