Skip to content

Commit

Permalink
add_theme_page
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskoster committed Sep 4, 2014
1 parent 6adf8b3 commit 16b635e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions inc/admin/welcome-screen.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ function storefront_welcome_redirect() {
global $pagenow;

if ( is_admin() && 'themes.php' == $pagenow && isset( $_GET['activated'] ) ) {
wp_redirect( admin_url( 'index.php?page=storefront-welcome' ) );
wp_redirect( admin_url( 'themes.php?page=storefront-welcome' ) );
}
}

/**
* Creates the dashboard page
* @see add_dashboard_page()
* @see add_theme_page()
* @since 1.0.0
*/
function storefront_welcome_register_menu() {
add_dashboard_page( 'Storefront', 'Storefront', 'read', 'storefront-welcome', array( $this,'storefront_welcome_screen' ) );
add_theme_page( 'Storefront', 'Storefront', 'read', 'storefront-welcome', array( $this,'storefront_welcome_screen' ) );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion inc/structure/comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function storefront_comment( $comment, $args, $depth ) {
<?php printf( __( '<cite class="fn">%s</cite>', 'storefront' ), get_comment_author_link() ); ?>
</div>
<?php if ( $comment->comment_approved == '0' ) : ?>
<em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.' ); ?></em>
<em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'storefront' ); ?></em>
<br />
<?php endif; ?>

Expand Down

0 comments on commit 16b635e

Please sign in to comment.