File Editor
Directories:
.. (Back)
Files:
author-not-built-exception.php
indexable-exception.php
invalid-term-exception.php
not-built-exception.php
post-not-built-exception.php
post-not-found-exception.php
post-type-not-built-exception.php
source-exception.php
term-not-built-exception.php
term-not-found-exception.php
Create New File
Create
Edit File: invalid-term-exception.php
<?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 ) ); } }
Save Changes
Rename File
Rename