Making WordPress.org


Ignore:
Timestamp:
07/30/2021 03:52:36 PM (6 months ago)
Author:
ryelle
Message:

Pattern Directory: Sync with git WordPress/pattern-directory@fa8cba8d36fa073e0a6c4434440bc526a1655e3c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/header.php

    r11159 r11164  
    3333                        <p class="site-description"><?php esc_html_e( 'Add a beautifully designed, ready to go layout to any WordPress site with a simple copy/paste.', 'wporg-patterns' ); ?></p>
    3434                        <?php get_search_form(); ?>
    35                         <a class="site-link" href="<?php echo esc_url( home_url( '/favorites' ) ); ?>"><?php esc_html_e( 'Favorites', 'wporg-patterns' ); ?></a>
     35
     36                        <?php if ( is_user_logged_in() ) : ?>
     37                            <a class="site-link" href="<?php echo esc_url( home_url( '/favorites' ) ); ?>"><?php esc_html_e( 'Favorites', 'wporg-patterns' ); ?></a>
     38                        <?php else : ?>
     39                            <a class="site-link" href="<?php echo esc_url( wp_login_url() ); ?>"><?php esc_html_e( 'Log in to collect your favorites', 'wporg-patterns' ); ?></a>
     40                        <?php endif; ?>
    3641                    </div>
    3742                <?php else : ?>
Note: See TracChangeset for help on using the changeset viewer.