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/wp-conte.../plugins/wordpres.../src/exceptio.../indexabl...
File: author-not-built-exception.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Exceptions\Indexable;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* For when an author indexable is not being built.
[5] Fix | Delete
*/
[6] Fix | Delete
class Author_Not_Built_Exception extends Not_Built_Exception {
[7] Fix | Delete
[8] Fix | Delete
/**
[9] Fix | Delete
* Named constructor for creating an Author_Not_Built_Exception
[10] Fix | Delete
* when author archives are disabled for users without posts.
[11] Fix | Delete
*
[12] Fix | Delete
* @param string $user_id The user id.
[13] Fix | Delete
*
[14] Fix | Delete
* @return Author_Not_Built_Exception The exception.
[15] Fix | Delete
*/
[16] Fix | Delete
public static function author_archives_are_not_indexed_for_users_without_posts( $user_id ) {
[17] Fix | Delete
return new self(
[18] Fix | Delete
'Indexable for author with id ' . $user_id . ' is not being built, since author archives are not indexed for users without posts.'
[19] Fix | Delete
);
[20] Fix | Delete
}
[21] Fix | Delete
[22] Fix | Delete
/**
[23] Fix | Delete
* Named constructor for creating an Author_Not_Built_Exception
[24] Fix | Delete
* when author archives are disabled.
[25] Fix | Delete
*
[26] Fix | Delete
* @param string $user_id The user id.
[27] Fix | Delete
*
[28] Fix | Delete
* @return Author_Not_Built_Exception The exception.
[29] Fix | Delete
*/
[30] Fix | Delete
public static function author_archives_are_disabled( $user_id ) {
[31] Fix | Delete
return new self(
[32] Fix | Delete
'Indexable for author with id ' . $user_id . ' is not being built, since author archives are disabled.'
[33] Fix | Delete
);
[34] Fix | Delete
}
[35] Fix | Delete
[36] Fix | Delete
/**
[37] Fix | Delete
* Named constructor for creating an Author_Not_Build_Exception
[38] Fix | Delete
* when an author is excluded because of the `'wpseo_should_build_and_save_user_indexable'` filter.
[39] Fix | Delete
*
[40] Fix | Delete
* @param string $user_id The user id.
[41] Fix | Delete
*
[42] Fix | Delete
* @return Author_Not_Built_Exception The exception.
[43] Fix | Delete
*/
[44] Fix | Delete
public static function author_not_built_because_of_filter( $user_id ) {
[45] Fix | Delete
return new self(
[46] Fix | Delete
'Indexable for author with id ' . $user_id . ' is not being built, since it is excluded because of the \'wpseo_should_build_and_save_user_indexable\' filter.'
[47] Fix | Delete
);
[48] Fix | Delete
}
[49] Fix | Delete
}
[50] Fix | Delete
[51] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function