Making WordPress.org


Ignore:
Timestamp:
04/29/2017 02:52:50 PM (9 years ago)
Author:
ocean90
Message:

developer.wordpress.org: Trim trailing whitespace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/breadcrumb-trail.php

    r804 r5432  
    33 * Breadcrumb Trail - A breadcrumb menu script for WordPress.
    44 *
    5  * Breadcrumb Trail is a script for showing a breadcrumb trail for any type of page.  It tries to 
    6  * anticipate any type of structure and display the best possible trail that matches your site's 
    7  * permalink structure.  While not perfect, it attempts to fill in the gaps left by many other 
     5 * Breadcrumb Trail is a script for showing a breadcrumb trail for any type of page.  It tries to
     6 * anticipate any type of structure and display the best possible trail that matches your site's
     7 * permalink structure.  While not perfect, it attempts to fill in the gaps left by many other
    88 * breadcrumb scripts.
    99 *
    10  * This program is free software; you can redistribute it and/or modify it under the terms of the GNU 
    11  * General Public License as published by the Free Software Foundation; either version 2 of the License, 
     10 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
     11 * General Public License as published by the Free Software Foundation; either version 2 of the License,
    1212 * or (at your option) any later version.
    1313 *
    14  * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without 
     14 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
    1515 * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    1616 *
     
    2424
    2525/**
    26  * Shows a breadcrumb for all types of pages.  This is a wrapper function for the Breadcrumb_Trail class, 
     26 * Shows a breadcrumb for all types of pages.  This is a wrapper function for the Breadcrumb_Trail class,
    2727 * which should be used in theme templates.
    2828 *
     
    207207
    208208    /**
    209      * Runs through the various WordPress conditional tags to check the current page being viewed.  Once 
     209     * Runs through the various WordPress conditional tags to check the current page being viewed.  Once
    210210     * a condition is met, a specific method is launched to add items to the $items array.
    211211     *
     
    495495
    496496    /**
    497      * Adds a specific post's hierarchy to the items array.  The hierarchy is determined by post type's 
     497     * Adds a specific post's hierarchy to the items array.  The hierarchy is determined by post type's
    498498     * rewrite arguments and whether it has an archive page.
    499499     *
     
    542542
    543543    /**
    544      * Gets post types by slug.  This is needed because the get_post_types() function doesn't exactly 
     544     * Gets post types by slug.  This is needed because the get_post_types() function doesn't exactly
    545545     * match the 'has_archive' argument when it's set as a string instead of a boolean.
    546546     *
     
    596596
    597597                /**
    598                  * Deals with the situation if the slug has a '/' between multiple strings. For 
     598                 * Deals with the situation if the slug has a '/' between multiple strings. For
    599599                 * example, "movies/genres" where "movies" is the post type archive.
    600600                 */
     
    911911
    912912    /**
    913      * Get parent posts by path.  Currently, this method only supports getting parents of the 'page' 
    914      * post type.  The goal of this function is to create a clear path back to home given what would 
     913     * Get parent posts by path.  Currently, this method only supports getting parents of the 'page'
     914     * post type.  The goal of this function is to create a clear path back to home given what would
    915915     * normally be a "ghost" directory.  If any page matches the given path, it'll be added.
    916916     *
     
    970970
    971971    /**
    972      * Searches for term parents of hierarchical taxonomies.  This function is similar to the WordPress 
     972     * Searches for term parents of hierarchical taxonomies.  This function is similar to the WordPress
    973973     * function get_category_parents() but handles any type of taxonomy.
    974974     *
     
    10031003    /**
    10041004     * Turns %tag% from permalink structures into usable links for the breadcrumb trail.  This feels kind of
    1005      * hackish for now because we're checking for specific %tag% examples and only doing it for the 'post' 
     1005     * hackish for now because we're checking for specific %tag% examples and only doing it for the 'post'
    10061006     * post type.  In the future, maybe it'll handle a wider variety of possibilities, especially for custom post
    10071007     * types.
     
    10841084
    10851085/**
    1086  * Extends the Breadcrumb_Trail class for bbPress.  Only use this if bbPress is in use.  This should 
     1086 * Extends the Breadcrumb_Trail class for bbPress.  Only use this if bbPress is in use.  This should
    10871087 * serve as an example for other plugin developers to build custom breadcrumb items.
    10881088 *
     
    10931093
    10941094    /**
    1095      * Runs through the various bbPress conditional tags to check the current page being viewed.  Once 
     1095     * Runs through the various bbPress conditional tags to check the current page being viewed.  Once
    10961096     * a condition is met, add items to the $items array.
    10971097     *
Note: See TracChangeset for help on using the changeset viewer.