[theme-reviewers] Theme fail at submission for conditional code
esmi at quirm dot net
esmi at quirm.net
Wed Jul 4 19:00:07 UTC 2012
Theme: Scrapbook 5.4
Reason:
REQUIRED: add_contextual_help found in the file theme-options.php.
Deprecated since version 3.3. Use get_current_screen()->add_help_tab()
instead.
add_contextual_help is being used in a conditional to provide backwards
compatibility based on a snippet from Twenty Eleven.
=========================
if ( method_exists( $screen, 'add_help_tab' ) ) {
// WordPress 3.3
$screen->add_help_tab( array(
'title' => __( 'Overview', 'scrapbook' ),
'id' => 'theme-options-help',
'content' => $help,
)
);
$screen->set_help_sidebar( $sidebar );
}
else add_contextual_help( $screen, $help . $sidebar ); // WordPress 3.2
=========================
Will get_current_screen()->add_help_tab() work in 3.2?
Mel
--
http://quirm.net
http://blackwidows.co.uk
More information about the theme-reviewers
mailing list