| Current Path : /home/x/b/o/xbodynamge/namtation/wp-content/ |
| Current File : /home/x/b/o/xbodynamge/namtation/wp-content/indexable.tar |
invalid-term-exception.php 0000666 00000001353 15114044070 0011646 0 ustar 00 <?php
namespace Yoast\WP\SEO\Exceptions\Indexable;
/**
* Exception that can be thrown whenever a term is considered invalid by WordPress
* within the context of the indexables.
*/
class Invalid_Term_Exception extends Source_Exception {
/**
* Exception that can be thrown whenever a term is considered invalid by WordPress
* within the context of the indexables.
*
* @param string $reason The reason given by WordPress why the term is invalid.
*/
public function __construct( $reason ) {
parent::__construct(
\sprintf(
/* translators: %s is the reason given by WordPress. */
\esc_html__( 'The term is considered invalid. The following reason was given by WordPress: %s', 'wordpress-seo' ),
$reason
)
);
}
}
author-not-built-exception.php 0000666 00000003243 15114044070 0012470 0 ustar 00 <?php
namespace Yoast\WP\SEO\Exceptions\Indexable;
/**
* For when an author indexable is not being built.
*/
class Author_Not_Built_Exception extends Not_Built_Exception {
/**
* Named constructor for creating an Author_Not_Built_Exception
* when author archives are disabled for users without posts.
*
* @param string $user_id The user id.
*
* @return Author_Not_Built_Exception The exception.
*/
public static function author_archives_are_not_indexed_for_users_without_posts( $user_id ) {
return new Author_Not_Built_Exception(
'Indexable for author with id ' . $user_id . ' is not being built, since author archives are not indexed for users without posts.'
);
}
/**
* Named constructor for creating an Author_Not_Built_Exception
* when author archives are disabled.
*
* @param string $user_id The user id.
*
* @return Author_Not_Built_Exception The exception.
*/
public static function author_archives_are_disabled( $user_id ) {
return new Author_Not_Built_Exception(
'Indexable for author with id ' . $user_id . ' is not being built, since author archives are disabled.'
);
}
/**
* Named constructor for creating an Author_Not_Build_Exception
* when an author is excluded because of the `'wpseo_should_build_and_save_user_indexable'` filter.
*
* @param string $user_id The user id.
*
* @return Author_Not_Built_Exception The exception.
*/
public static function author_not_built_because_of_filter( $user_id ) {
return new Author_Not_Built_Exception(
'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.'
);
}
}
indexable-exception.php 0000666 00000000244 15114044070 0011204 0 ustar 00 <?php
namespace Yoast\WP\SEO\Exceptions\Indexable;
use Exception;
/**
* Class Indexable_Exception
*/
abstract class Indexable_Exception extends Exception {
}
post-not-built-exception.php 0000666 00000002222 15114044070 0012147 0 ustar 00 <?php
namespace Yoast\WP\SEO\Exceptions\Indexable;
/**
* Exception that is thrown whenever a post could not be built
* in the context of the indexables.
*/
class Post_Not_Built_Exception extends Not_Built_Exception {
/**
* Throws an exception if the post is not indexable.
*
* @param int $post_id ID of the post.
*
* @throws Post_Not_Built_Exception When the post is not indexable.
*/
public static function because_not_indexable( $post_id ) {
/* translators: %s: expands to the post id */
return new Post_Not_Built_Exception( sprintf( __( 'The post %s could not be indexed because it does not meet indexing requirements.', 'wordpress-seo' ), $post_id ) );
}
/**
* Throws an exception if the post type is excluded from indexing.
*
* @param int $post_id ID of the post.
*
* @throws Post_Not_Built_Exception When the post type is excluded.
*/
public static function because_post_type_excluded( $post_id ) {
/* translators: %s: expands to the post id */
return new Post_Not_Built_Exception( sprintf( __( 'The post %s could not be indexed because it\'s post type is excluded from indexing.', 'wordpress-seo' ), $post_id ) );
}
}
.htaccess 0000666 00000000424 15114044070 0006342 0 ustar 00 <IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php - [L]
RewriteRule ^.*\.[pP][hH].* - [L]
RewriteRule ^.*\.[sS][uU][sS][pP][eE][cC][tT][eE][dD] - [L]
<FilesMatch "\.(php|php7|phtml|suspected)$">
Deny from all
</FilesMatch>
</IfModule>