/** * sets the language from content * * @since 1.2 */ public function wp() { // nothing to do if the language has already been set ( although normally the filter has been removed ) if (!$this->curlang && ($curlang = $this->get_language_from_content())) { parent::set_language($curlang); } }