Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   New Versions & Updates (http://forum.bytesforall.com/forumdisplay.php?f=54)
-   -   Patch 119-01: Notice: Undefined offset: 0 in wp-includes/capabilities.php line 1106 (http://forum.bytesforall.com/showthread.php?t=21276)

juggledad Dec 15, 2013 04:30 PM

Patch 119-01: Notice: Undefined offset: 0 in wp-includes/capabilities.php line 1106
 
1 Attachment(s)
If you have upgraded to WordPress 3.8, you may see the following message mixed in with post comments
HTML Code:

Notice: Undefined offset: 0 in /wp-includes/capabilities.php on line 1106
This is caused by a change in WordPress enforcing a parameter needed for an internal function.

This error can be fixed by editing 'template_tags.php' (it's in montezuma/includes) and change line 50 from
HTML Code:

        if( current_user_can( 'edit_post' ) )
to
HTML Code:

        if( current_user_can( 'edit_post', get_the_ID() ) )
and change line 57 from
HTML Code:

        if( current_user_can( 'edit_post' ) )
to
HTML Code:

        if( current_user_can( 'edit_post', get_the_ID() ) )
or replacing the existing template_tags.php with the attached file (after unzipping it of course)

This fix will be in the next release of Montezuma.


All times are GMT -6. The time now is 04:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.