Merge pull request #6859 from SiR-DanieL/master

Edit link for WC Pages
This commit is contained in:
Claudio Sanches 2014-11-28 09:40:32 -02:00
commit 8e929c1ee8
1 changed files with 10 additions and 6 deletions

View File

@ -439,14 +439,18 @@ If enabled on your server, Suhosin may need to be configured to increase its dat
$alt = 1;
foreach ( $check_pages as $page_name => $values ) {
echo '<tr><td>' . esc_html( $page_name ) . ':</td>';
echo '<td class="help"><a href="#" class="help_tip" data-tip="' . esc_attr( $values['help'] ) . '">[?]</a></td><td>';
$error = false;
$error = false;
$page_id = get_option( $values['option'] );
if ( $page_id ) {
$page_name = '<a href="' . get_edit_post_link( $page_id ) . '" title="' . sprintf( _x( 'Edit %s page', '[WC Pages links in the System Status]', 'woocommerce' ), esc_html( $page_name ) ) . '">' . esc_html( $page_name ) . '</a>';
} else {
$page_name = esc_html( $page_name );
}
echo '<tr><td>' . $page_name . ':</td>';
echo '<td class="help"><a href="#" class="help_tip" data-tip="' . esc_attr( $values['help'] ) . '">[?]</a></td><td>';
// Page ID check
if ( ! $page_id ) {
echo '<mark class="error">' . __( 'Page not set', 'woocommerce' ) . '</mark>';