示例#1
0
     // The blog comments feed; i.e. `/comments/feed/` on most WP installs.
     $variations = array_merge($variations, $utils->feedLinkVariations('comments_'));
     break;
     // Break switch handler.
 // Break switch handler.
 case 'post-comments':
     // Feeds related to comments that a post has.
     if (!$post_id) {
         break;
         // Break switch handler.
     }
     if (!($post = get_post($post_id))) {
         break;
         // Break switch handler.
     }
     $variations = array_merge($variations, $utils->postCommentsFeedLinkVariations($post));
     break;
     // Break switch handler.
 // Break switch handler.
 case 'post-authors':
     // Feeds related to authors that a post has.
     if (!$post_id) {
         break;
         // Break switch handler.
     }
     if (!($post = get_post($post_id))) {
         break;
         // Break switch handler.
     }
     $variations = array_merge($variations, $utils->postAuthorFeedLinkVariations($post));
     break;