/** * @covers ::bbp_author_ip * @covers ::bbp_get_author_ip */ public function test_bbp_get_author_ip() { $t = $this->factory->topic->create(); $author_ip = '<span class="bbp-author-ip">(127.0.0.1)</span>'; // String. $this->assertSame($author_ip, bbp_get_author_ip($t)); // Output. $this->expectOutputString($author_ip); bbp_author_ip($t); }
/** * Output the author IP address of a post * * @since 2.0.0 bbPress (r3120) * * @param array $args Optional. If it is an integer, it is used as post id. * @uses bbp_get_author_ip() To get the post author link */ function bbp_author_ip($args = array()) { echo bbp_get_author_ip($args); }
/** * Output the author IP address of a post * * @since bbPress (r3120) * * @param mixed $args Optional. If it is an integer, it is used as post id. * @uses bbp_get_author_ip() To get the post author link */ function bbp_author_ip($args = '') { echo bbp_get_author_ip($args); }