• i have created one theme. which is still pending approval or denial. the theme was denied today for the following reasons:

    1,

    Theme Review:
    – Themes should be reviewed using “define(‘WP_DEBUG’, true);” in wp-
    config.php
    – Themes should be reviewed using the test data from the Theme Checklists

    (TC)

    the wp-config.php is wordpress setting file. how to alter my custom theme.

    2, “

    he theme registers some custom functionality in the function
    warmHome_setup() however this function in not hooked so the functionality
    is not available. Recommend hooking the theme to the after_setup_theme
    hook.

    the following is my themes warmHome_setup() function. how to alter it. many thanks.

    function warmHome_setup() {
    
    	// This theme styles the visual editor with editor-style.css to match the theme style.
    	add_editor_style();
    
    	// Add default posts and comments RSS feed links to head
    	add_theme_support( 'automatic-feed-links' );
    
    	// Make theme available for translation
    	// Translations can be filed in the /languages/ directory
    	load_theme_textdomain( 'warm-home', TEMPLATEPATH . '/languages' );
    
    	$locale = get_locale();
    	$locale_file = TEMPLATEPATH . "/languages/$locale.php";
    	if ( is_readable( $locale_file ) )
    		require_once( $locale_file );
    
    	// This theme uses wp_nav_menu() in one location.
    	register_nav_menus( array(
    		'primary' => __( 'Primary Navigation', 'warm home' ),
    	) );
    
    	// This theme allows users to set a custom background
    	add_custom_background();
    	}
Viewing 2 replies - 1 through 2 (of 2 total)
  • The reviewer should have suggested something along this line to “hook” the function call:

    add_action( 'after_setup_theme', 'warmHome_setup' );

    This is often written just before the function call, but can be just as easily written after the function.

    The first notes are more general information and a reminder to thoroughly test a Theme before uploading it to be reviewed.

    Please feel free to respond to the Trac ticket for your Theme as well, it is one of the best places to get feedback on issues that may be found with it.

    Thread Starter runeveryday

    (@runeveryday)

    when shoud i add the add_action() to the function that customed by myself?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘{help} submit theme questions’ is closed to new replies.