Making WordPress.org


Ignore:
Timestamp:
04/04/2016 11:42:19 PM (9 years ago)
Author:
iandunn
Message:

WordCamp Post Type: Use constant for WordCamp post slug instead of hardcoding.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/branches/application-tracking/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-template.php

    r2877 r2894  
    648648 */
    649649function add_wordcamp_feed_link_to_head() {
    650     if ( ! is_post_type_archive( 'wordcamp' ) ) {
     650    if ( ! is_post_type_archive( WCPT_POST_TYPE_ID ) ) {
    651651        ?>
    652652       
    653         <link rel="alternate" type="<?php echo esc_attr( feed_content_type() ); ?>" title="New WordCamp Announcements" href="<?php echo esc_url( get_post_type_archive_feed_link( 'wordcamp' ) ); ?>" />
     653        <link rel="alternate" type="<?php echo esc_attr( feed_content_type() ); ?>" title="New WordCamp Announcements" href="<?php echo esc_url( get_post_type_archive_feed_link( WCPT_POST_TYPE_ID ) ); ?>" />
    654654   
    655655        <?php
Note: See TracChangeset for help on using the changeset viewer.