Example #1
0
     }
     $variations = array_merge($variations, $utils->postAuthorFeedLinkVariations($post));
     break;
     // Break switch handler.
 // Break switch handler.
 case 'post-terms':
     // Feeds related to terms 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->postTermFeedLinkVariations($post, true));
     break;
     // Break switch handler.
 // Break switch handler.
 case 'custom-post-type':
     // Feeds related to a custom post type archive view.
     if (!$post_id) {
         break;
         // Break switch handler.
     }
     if (!($post = get_post($post_id))) {
         break;
         // Break switch handler.
     }
     $variations = array_merge($variations, $utils->postTypeArchiveFeedLinkVariations($post));
     break;