Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbp_author_metabox error


  • mrcanoa
    Participant

    @mrcanoa

    Hi bb Team,

    I found a bug, maybe, on bbpress ver.: 2.5.12 if I use action bbp_author_metabox

    I try to add some user info on metabox but if I call this:

    add_action('bbp_author_metabox', array($this, 'bbp_author_details'));
    function bbp_author_details($post_id) {
    	echo "<p>Test</p>";
    }

    in html code I’ve this on start tag:
    `<p>Test</p><!DOCTYPE html>
    <!–[if IE 8]>`

    and on the right place:

    <div id="bbp_author_metabox" class="postbox " >
    <button type="button" class="handlediv button-link" aria-expanded="true"><span class="screen-reader-text">Commuta il pannello: Informazioni autore</span><span class="toggle-indicator" aria-hidden="true"></span></button><h2 class='hndle'><span>Informazioni autore</span></h2>
    <div class="inside">
    		<p>
    			<strong class="label">ID:</strong>
    			<label class="screen-reader-text" for="bbp_author_id">ID</label>
    			<input type="text" id="bbp_author_id" name="post_author_override" value="xxxxx" data-ajax-url="xxxx" />
    		</p>
    <p>
    		<strong class="label">IP:</strong>
    		<label class="screen-reader-text" for="bbp_author_ip_address">Indirizzo IP</label>
    		<input type="text" id="bbp_author_ip_address" name="bbp_author_ip_address" value="xxxxxx" disabled="disabled" />
    	</p>
    	<p>Test</p></div>
    </div>

    I found that do_action( ‘bbp_author_metabox’, get_the_ID() ) it’s called twice:
    -on author_metabox function (bbpress/includes/admin/topics.php)
    -on bbp_author_metabox function (bbpress/includes/admin/metaboxes.php)
    -on author_metabox function (bbpress/includes/admin/replies.php)

    This cause html error code.

    I think it’s name error on bbpress/includes/admin/topics.php and should be do_action( ‘bbp_author_attributes_metabox’, get_the_ID() );

    Thank you
    David

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar