Making WordPress.org


Ignore:
Timestamp:
01/28/2016 07:01:47 PM (9 years ago)
Author:
iandunn
Message:

Central Theme: Add privacy policy link to footer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-central-2012/functions.php

    r1867 r2402  
    4242        // add_filter( 'wcpt_register_post_type', array( __CLASS__, 'wcpt_register_post_type' ) ); // set to public in wcpt plugin
    4343        add_filter( 'nav_menu_css_class', array( __CLASS__, 'nav_menu_css_class' ), 10, 3 );
    44         add_filter( 'wp_nav_menu_items', array( __CLASS__, 'add_rss_links_to_footer_menu' ), 10, 2 );
     44        add_filter( 'wp_nav_menu_items', array( __CLASS__, 'add_links_to_footer_menu' ), 10, 2 );
    4545
    4646        add_shortcode( 'wcc_map',         array( __CLASS__, 'shortcode_map'         ) );
     
    357357    }
    358358
    359     public static function add_rss_links_to_footer_menu( $items, $args ) {
     359    public static function add_links_to_footer_menu( $items, $args ) {
    360360        if ( 'menu-footer' == $args->container_class ) {
    361361            ob_start();
     
    365365            <li class="menu-item menu-item-type-custom menu-item-object-custom"><a href="<?php echo esc_url( get_feed_link() ); ?>">RSS (posts)</a></li>
    366366            <li class="menu-item menu-item-type-custom menu-item-object-custom"><a href="<?php echo esc_url( get_post_type_archive_feed_link( 'wordcamp' ) ); ?>">RSS (WordCamps)</a></li>
     367            <li class="menu-item menu-item-type-custom menu-item-object-custom"><a href="https://wordpress.org/about/privacy/">Privacy Policy</a></li>
    367368
    368369            <?php
Note: See TracChangeset for help on using the changeset viewer.