[buddypress-trac] [BuddyPress] #4098: WP 3.4 deprecated theme functions
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Mon May 28 14:22:47 UTC 2012
#4098: WP 3.4 deprecated theme functions
--------------------------+-----------------------
Reporter: boonebgorges | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 1.6
Component: Core | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+-----------------------
Comment (by Mamaduka):
Updated patch with JJJ's suggestion, also improved custom header
implementation, constants should be used for backward-compatibility.
As DJPaul said, `$installed_themes[$current_theme]` will trigger the
warning. Also not sure if installed themes array is needed at all.
This would be enough:
{{{
if ( !empty( $current_theme['Screenshot'] ) ) {
$screenshot = trailingslashit( get_stylesheet_directory_uri() ) .
$current_theme;
}
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4098#comment:9>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list