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/exceptio.../indexabl...
File: post-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
* Exception that is thrown whenever a post could not be built
[5] Fix | Delete
* in the context of the indexables.
[6] Fix | Delete
*/
[7] Fix | Delete
class Post_Not_Built_Exception extends Not_Built_Exception {
[8] Fix | Delete
[9] Fix | Delete
/**
[10] Fix | Delete
* Throws an exception if the post is not indexable.
[11] Fix | Delete
*
[12] Fix | Delete
* @param int $post_id ID of the post.
[13] Fix | Delete
*
[14] Fix | Delete
* @return Post_Not_Built_Exception
[15] Fix | Delete
*/
[16] Fix | Delete
public static function because_not_indexable( $post_id ) {
[17] Fix | Delete
/* translators: %s: expands to the post id */
[18] Fix | Delete
return new self( \sprintf( \__( 'The post %s could not be indexed because it does not meet indexing requirements.', 'wordpress-seo' ), $post_id ) );
[19] Fix | Delete
}
[20] Fix | Delete
[21] Fix | Delete
/**
[22] Fix | Delete
* Throws an exception if the post type is excluded from indexing.
[23] Fix | Delete
*
[24] Fix | Delete
* @param int $post_id ID of the post.
[25] Fix | Delete
*
[26] Fix | Delete
* @return Post_Not_Built_Exception
[27] Fix | Delete
*/
[28] Fix | Delete
public static function because_post_type_excluded( $post_id ) {
[29] Fix | Delete
/* translators: %s: expands to the post id */
[30] Fix | Delete
return new self( \sprintf( \__( 'The post %s could not be indexed because it\'s post type is excluded from indexing.', 'wordpress-seo' ), $post_id ) );
[31] Fix | Delete
}
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function