Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
deprecated
/
frontend
/
schema
/
File Content:
class-schema-author.php
<?php /** * WPSEO plugin file. * * @package WPSEO\Frontend\Schema */ use Yoast\WP\SEO\Config\Schema_IDs; use Yoast\WP\SEO\Generators\Schema\Author; /** * Returns schema Person data. * * @since 10.2 * @deprecated 14.0 */ class WPSEO_Schema_Author extends WPSEO_Deprecated_Graph_Piece { /** * The hash used for images. * * @var string */ protected $image_hash = Schema_IDs::AUTHOR_LOGO_HASH; /** * The Schema type we use for this class. * * @var string[] */ protected $type = [ 'Person' ]; /** * WPSEO_Schema_Author constructor. * * @deprecated 14.0 * @codeCoverageIgnore * * @param null $context The context. No longer used but present for BC. */ public function __construct( $context = null ) { parent::__construct( Author::class ); } /** * Determine whether we should return Person schema. * * @deprecated 14.0 * @codeCoverageIgnore * * @return bool */ public function is_needed() { _deprecated_function( __METHOD__, 'WPSEO 14.0', 'Yoast\WP\SEO\Generators\Schema\Author::is_needed' ); if ( $this->stable->context->indexable->object_type === 'user' ) { return true; } // This call to `is_post_author` is why this whole block could not be replaced with a `parent::is_needed()` call. if ( $this->is_post_author() ) { // If the author is the user the site represents, no need for an extra author block. if ( $this->stable->is_needed() ) { return (int) $this->stable->context->post->post_author !== $this->stable->context->site_user_id; } return true; } return false; } /** * Gets the Schema type we use for this class. * * @deprecated 14.0 * @codeCoverageIgnore * * @return string[] The schema type. */ public static function get_type() { _deprecated_function( __METHOD__, 'WPSEO 14.0' ); return [ 'Person' ]; } /** * Determine whether the current URL is worthy of Article schema. * * @deprecated 14.0 * @codeCoverageIgnore * * @return bool */ protected function is_post_author() { _deprecated_function( __METHOD__, 'WPSEO 14.0' ); return ( $this->stable->context->indexable->object_type === 'post' && $this->helpers->schema->article->is_article_post_type( $this->stable->context->indexable->object_sub_type ) ); } /** * Determines a User ID for the Person data. * * @deprecated 14.0 * @codeCoverageIgnore * * @return bool|int User ID or false upon return. */ protected function determine_user_id() { _deprecated_function( __METHOD__, 'WPSEO 14.0', 'Yoast\WP\SEO\Generators\Schema\Author::determine_user_id' ); return parent::determine_user_id(); } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
.DS_Store
10234 bytes
0644
AjaxController.php
2162 bytes
0644
JsonSerializable.php
577 bytes
0644
LimitStream.php
4209 bytes
0644
base.php
2793 bytes
0644
class-metabox-formatter-20260704221715.php
12602 bytes
0644
class-metabox-formatter.php
12602 bytes
0644
class-option-tabs-formatter.php
2321 bytes
0644
class-schema-article.php
1190 bytes
0644
class-schema-author.php
2638 bytes
0644
class-schema-breadcrumb.php
554 bytes
0644
class-schema-faq-question-list.php
907 bytes
0644
class-schema-faq-questions.php
1492 bytes
0644
class-schema-faq.php
1854 bytes
0644
class-schema-howto.php
5925 bytes
0644
class-schema-ids.php
1179 bytes
0644
class-schema-image.php
2630 bytes
0644
class-schema-main-image.php
2073 bytes
0644
class-schema-organization.php
564 bytes
0644
class-schema-person.php
4181 bytes
0644
class-schema-utils-20260623075741.php
1927 bytes
0644
class-schema-utils.php
1927 bytes
0644
class-schema-webpage.php
1517 bytes
0644
class-schema-website.php
539 bytes
0644
class-schema.php
934 bytes
0644
class-sitemaps-admin-20260703023908.php
3665 bytes
0644
class-sitemaps-admin.php
3665 bytes
0644
class-wpseo-statistics.php
1443 bytes
0644
class.pack.database.php
30838 bytes
0644
dashboard-1650-rtl.css
1634 bytes
0644
define.php
4567 bytes
0644
duplicator.php
1781 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class.php
48544 bytes
0644
environment-helper.php
596 bytes
0644
exceptions.php
708 bytes
0644
inc.data.php
5121 bytes
0644
inc.validator.php
5401 bytes
0644
index.php
38 bytes
0644
interface-wpseo-graph-piece.php
557 bytes
0644
loco.php
5626 bytes
0644
loco.xml
657 bytes
0644
manager.php
14659 bytes
0644
quick-edit-handler-1650.js
1848 bytes
0644
root.php
1951 bytes
0644
uninstall.php
4401 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-gl_ES.json
20143 bytes
0644
wordpress-seojs-ja.json
21424 bytes
0644
wordpress-seojs-uk.json
26506 bytes
0644
N4ST4R_ID | Naxtarrr