Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/wordpres.../src/helpers/schema
File: article-helper.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Helpers\Schema;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* Class Article_Helper.
[5] Fix | Delete
*/
[6] Fix | Delete
class Article_Helper {
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* Determines whether a given post type should have Article schema.
[10] Fix | Delete
*
[11] Fix | Delete
* @param string|null $post_type Post type to check.
[12] Fix | Delete
*
[13] Fix | Delete
* @return bool True if it has Article schema, false if not.
[14] Fix | Delete
*/
[15] Fix | Delete
public function is_article_post_type( $post_type = null ) {
[16] Fix | Delete
if ( \is_null( $post_type ) ) {
[17] Fix | Delete
$post_type = \get_post_type();
[18] Fix | Delete
}
[19] Fix | Delete
[20] Fix | Delete
return $this->is_author_supported( $post_type );
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
/**
[24] Fix | Delete
* Checks whether author is supported for the passed object sub type.
[25] Fix | Delete
*
[26] Fix | Delete
* @param string $object_sub_type The sub type of the object to check author support for.
[27] Fix | Delete
*
[28] Fix | Delete
* @return bool True if author is supported for the passed object sub type.
[29] Fix | Delete
*/
[30] Fix | Delete
public function is_author_supported( $object_sub_type ) {
[31] Fix | Delete
return \post_type_supports( $object_sub_type, 'author' );
[32] Fix | Delete
}
[33] Fix | Delete
}
[34] Fix | Delete
[35] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function