Consider recommit after 1.19 is branched, and please add hooks.txt documentation, too.
* @return Bool
*/
public function isKnown() {
- $isKnown = null;
-
- /**
- * Allows overriding default behaviour for determining if a page exists.
- * If $isKnown is kept as null, regular checks happen. If it's
- * a boolean, this value is returned by the isKnown method.
- *
- * @since 1.19
- *
- * @param Title $title
- * @param boolean|null $isKnown
- */
- wfRunHooks( 'TitleIsKnown', array( $this, &$isKnown ) );
-
- return is_null( $isKnown ) ? ( $this->isAlwaysKnown() || $this->exists() ) : $isKnown;
+ return $this->isAlwaysKnown() || $this->exists();
}
/**