Plugin Directory

Changeset 2275384


Ignore:
Timestamp:
04/03/2020 07:06:38 PM (6 years ago)
Author:
wptmcdev
Message:
  • Apply filter: 'PageNotFoundText' - allow users to change default the separator mark
  • Refactor: update library SundaWP 1.0.2, change the name of home text filter 'homeText'
Location:
breadcrumb-tmc/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • breadcrumb-tmc/trunk/breadcrumb-tmc.php

    r2273703 r2275384  
    55 * Plugin URI:        https://wordpress.org/plugins/breadcrumb-tmc/
    66 * Description:       Agile WordPress plugin to create Breadcrumb. Quick use <code>[breadcrumb-tmc]</code> to display breadcrumb.
    7  * Version:           1.0.6
     7 * Version:           1.0.8
    88 * Requires at least: 5.2
    99 * Requires PHP:      5.4
     
    1616 **/
    1717
    18 use sundawp\v1_0_3\SundaWP_requirementChecker;
     18use sundawp\v1_0_4\SundaWP_requirementChecker;
    1919
    2020
     
    2929
    3030
    31 if (! class_exists( 'sundawp\v1_0_3\SundaWP_requirementChecker' ) ) {
     31if (! class_exists( 'sundawp\v1_0_4\SundaWP_requirementChecker' ) ) {
    3232
    3333    require __DIR__ . '/lib/SundaWP/SundaWP_requirementChecker.php';
  • breadcrumb-tmc/trunk/lib/SundaWP/SundaWP.php

    r2273703 r2275384  
    88
    99
    10 namespace sundawp\v1_0_3;
     10namespace sundawp\v1_0_4;
    1111
    1212
     
    159159    }
    160160
    161     public static function getNotFoundPagePathLinkHtml() {
     161    public static function getPageNotFoundPathLinkHtml() {
    162162
    163163        /** @var string[] $link */
     
    167167        //  ----------------------------------------
    168168
    169         $NotFoundPageText  =  '404';
     169        $PageNotFoundText  =  apply_filters( 'PageNotFoundText' , '404' );;
    170170
    171         if ( true )  {
     171        $link = sprintf('<a>%1$s</a>', $PageNotFoundText );
    172172
    173             $link = sprintf('<a>%1$s</a>', $NotFoundPageText );
     173        //  Return
    174174
    175             //  Return
     175        return $link;
    176176
    177             return $link;
    178 
    179         } else {
    180 
    181             return false;
    182 
    183         }
    184177
    185178    }
  • breadcrumb-tmc/trunk/lib/SundaWP/SundaWP_requirementChecker.php

    r2270586 r2275384  
    77 */
    88
    9 namespace sundawp\v1_0_3;
     9namespace sundawp\v1_0_4;
    1010
    1111
  • breadcrumb-tmc/trunk/readme.txt

    r2274344 r2275384  
    66Requires PHP: 5.6
    77Tested up to: 5.4
    8 Stable tag: 1.0.7
     8Stable tag: 1.0.8
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9494== Changelog ==
    9595
     96= 1.0.8 =
     97Release date: April 3rd, 2020
     98
     99- Apply filter: 'PageNotFoundText' - allow users to change default the separator mark
     100- Refactor: update library SundaWP 1.0.2, change the name of home text filter 'homeText'
     101
    96102= 1.0.7 =
    97103Release date: April 2nd, 2020
  • breadcrumb-tmc/trunk/src/BreadcrumbGenerator.php

    r2274344 r2275384  
    77 */
    88
    9 namespace breadcrumb_tmc\v1_0_7;
    10 use sundawp\v1_0_3\SundaWP;
     9namespace breadcrumb_tmc\v1_0_8;
     10use sundawp\v1_0_4\SundaWP;
    1111
    1212
    13 if (! class_exists('sundawp\v1_0_3\SundaWP')) {
     13if (! class_exists('sundawp\v1_0_4\SundaWP')) {
    1414
    1515    require dirname( plugin_dir_path( __FILE__ ) ) . '/lib/SundaWP/SundaWP.php';
     
    4444            $item       = sprintf('<li>%1$s</li>', SundaWP::getArchivePathLinkHtml() );
    4545            $nodes[]    = $item;
    46 
    4746
    4847        }
     
    8988        //  ----------------------------------------
    9089
     90
    9191        if ( is_404() ) {
    9292
    93             $item       = sprintf('<li>%1$s</li>', SundaWP::getNotFoundPagePathLinkHtml() );
     93
     94            $item       = sprintf('<li>%1$s</li>', SundaWP::getPageNotFoundPathLinkHtml() );
    9495            $nodes[]    = $item;
    9596
    9697        }
    97 
    9898
    9999
  • breadcrumb-tmc/trunk/src/app.php

    r2274344 r2275384  
    77 */
    88
    9 use breadcrumb_tmc\v1_0_7\BreadcrumbGenerator;
     9use breadcrumb_tmc\v1_0_8\BreadcrumbGenerator;
    1010
    1111if (! class_exists( 'BreadcrumbGenerator' ) ) {
Note: See TracChangeset for help on using the changeset viewer.