Skip to:
Content
Pages
Categories
Search
Top
Bottom

post_form() h2 woes


  • r-a-y
    Participant

    @r-a-y

    I just installed bbPress 1.0 to my dev server today and something strange is happening.

    Instead of “Reply” or “New Topic in this Forum” for the h2 class “post-form”, I am now getting the string “Array”.

    Any idea why?

    Funny thing is this isn’t happening on my localbox where I installed bbPress 1.0 from 1.0 alpha 6 exactly the same way.

    I just went into functions.bb-template.php to do a var_dump of the $h2 variable in the post_form() function and this is what I get:

    array(1) { ["h2"]=> array(1) { ["h2"]=> array(1) { ["h2"]=> *RECURSION* } } }

    Any idea why the $h2 variable is an array when it should be outputting one of the strings “Reply”, “New Topic in this forum” or “Add New Topic”?

Viewing 3 replies - 1 through 3 (of 3 total)

  • r-a-y
    Participant

    @r-a-y

    Okay, I’ve narrowed it down to a problem with _cK_’s Read Only Forums plugin, which is weird, because like I said, the h2 displays properly on my localbox with _cK_’s plugin.


    r-a-y
    Participant

    @r-a-y

    Ugly hack for now…

    I commented out two lines in functions.bb-template.php:

    Line 272:

    if ( empty( $h2 ) && false !== $h2 ) {

    Line 280:

    }

    Would be nice to get a better workaround that doesn’t require hacking a core file.


    _ck_
    Participant

    @_ck_

    My plugins are not supported on 1.0 and many will not work properly.

    I’ve said this several times over the past few months.

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