Reporting a bug in Genesis 1.9.1

Community Forums Forums General Discussion Reporting a bug in Genesis 1.9.1

This topic is: resolved

This topic contains 8 replies, has 6 voices, and was last updated by  jb510 1 year, 8 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • #17635

    Post count: 3

    I’m not sure where the right place to report bugs is so I’m posting here.

    I don’t use Genesis but came across this answering a question on WordPress.Stackexchange .


    In your genesis_save_custom_fields function you do a check for current_user_can with one of the singular capability checks that require an additional $arg (the post id).  This causes 2 PHP undefined offset notices which never get seen even with WP_DEBUG turned on because the function is attached to the save_post hook and the page refreshes.

    If you happen to use Xdebug you will also get a headers already sent warning which will prevent the page from refreshing after the save_post action.

    The fix for this of course is to pass the post id along with current_user_can:
    Line 234 /lib/functions/options.php should be changed to:

    /** Check the user allowed to edit the post or page */
    if ( ( 'page' == $post->post_type && ! current_user_can( 'edit_page', $post->ID ) ) || ! current_user_can( 'edit_post' , $post->ID ) )

    You can probably also eliminate the post_type check since the edit_post and edit_page cap are now interchangeable (since WP 3.1 ).

    • This topic was modified 1 year, 10 months ago by  c3mdigital.
    • This topic was modified 1 year, 10 months ago by  c3mdigital.

    Post count: 1573

    The best place would probably be the help desk

    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography


    Post count: 3

    I don’t use Genesis so I don’t have access to the “help desk”.  I don’t need or want support I’m just trying to notify the developers of the error.


    Andrea Rennick
    Post count: 1437

    We already have a bug ticket filed.

    Edited to add: you can still access the general help desk without being a member. :) We are aware of the issue and as Travis reported over at Stack Exchange, are working with core on a fix.

    **forum signature**
    If you need technical support for your theme please file a ticket.

    The forums are community based. Staff only monitors the forum for issues relating to the forum itself and to redirect users to where they need to go.



    Post count: 178

    This was fixed in trunk on 1.17.2013 by Mark Jaquith in his audit. Release fix TBD.

    Personally, I believe this to be a WordPress issue since map_meta_cap() does not check or sanitize $args[0]. So I’ve submitted a ticket to WordPress core as a result.

    Travis Smith | Recommended StudioPress Developer & Contributor
    WP Smith | @wp_smith | GitHub

    Due to the forums, please paste code using Pastebin, JS Fiddle (for JavaScript) or GitHub.
    How to use Firebug for Designers by SixRevisions


    Post count: 10

    Any word on releasing this fix? I just spent an hour tracking it down only to find out it was found and fixed 6 weeks ago, just not released :(


    Post count: 164

    You could try submitting a support ticket to let the staff know.


    Post count: 10

    So again…  any update on this as it’s still not fixed to WP core, or Genesis?  It sounds like it was fixed in Genesis trunk but still almost 2 months later not released?  Could we at least get a patch to Genesis published?



    Post count: 10

    Yay!  Genesis 1.9.2 fixes this.

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Reporting a bug in Genesis 1.9.1’ is closed to new replies.