Changeset 2275384
- Timestamp:
- 04/03/2020 07:06:38 PM (6 years ago)
- Location:
- breadcrumb-tmc/trunk
- Files:
-
- 6 edited
-
breadcrumb-tmc.php (modified) (3 diffs)
-
lib/SundaWP/SundaWP.php (modified) (3 diffs)
-
lib/SundaWP/SundaWP_requirementChecker.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
src/BreadcrumbGenerator.php (modified) (3 diffs)
-
src/app.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
breadcrumb-tmc/trunk/breadcrumb-tmc.php
r2273703 r2275384 5 5 * Plugin URI: https://wordpress.org/plugins/breadcrumb-tmc/ 6 6 * Description: Agile WordPress plugin to create Breadcrumb. Quick use <code>[breadcrumb-tmc]</code> to display breadcrumb. 7 * Version: 1.0. 67 * Version: 1.0.8 8 8 * Requires at least: 5.2 9 9 * Requires PHP: 5.4 … … 16 16 **/ 17 17 18 use sundawp\v1_0_ 3\SundaWP_requirementChecker;18 use sundawp\v1_0_4\SundaWP_requirementChecker; 19 19 20 20 … … 29 29 30 30 31 if (! class_exists( 'sundawp\v1_0_ 3\SundaWP_requirementChecker' ) ) {31 if (! class_exists( 'sundawp\v1_0_4\SundaWP_requirementChecker' ) ) { 32 32 33 33 require __DIR__ . '/lib/SundaWP/SundaWP_requirementChecker.php'; -
breadcrumb-tmc/trunk/lib/SundaWP/SundaWP.php
r2273703 r2275384 8 8 9 9 10 namespace sundawp\v1_0_ 3;10 namespace sundawp\v1_0_4; 11 11 12 12 … … 159 159 } 160 160 161 public static function get NotFoundPagePathLinkHtml() {161 public static function getPageNotFoundPathLinkHtml() { 162 162 163 163 /** @var string[] $link */ … … 167 167 // ---------------------------------------- 168 168 169 $ NotFoundPageText = '404';169 $PageNotFoundText = apply_filters( 'PageNotFoundText' , '404' );; 170 170 171 if ( true ) { 171 $link = sprintf('<a>%1$s</a>', $PageNotFoundText ); 172 172 173 $link = sprintf('<a>%1$s</a>', $NotFoundPageText );173 // Return 174 174 175 // Return 175 return $link; 176 176 177 return $link;178 179 } else {180 181 return false;182 183 }184 177 185 178 } -
breadcrumb-tmc/trunk/lib/SundaWP/SundaWP_requirementChecker.php
r2270586 r2275384 7 7 */ 8 8 9 namespace sundawp\v1_0_ 3;9 namespace sundawp\v1_0_4; 10 10 11 11 -
breadcrumb-tmc/trunk/readme.txt
r2274344 r2275384 6 6 Requires PHP: 5.6 7 7 Tested up to: 5.4 8 Stable tag: 1.0. 78 Stable tag: 1.0.8 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 94 94 == Changelog == 95 95 96 = 1.0.8 = 97 Release 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 96 102 = 1.0.7 = 97 103 Release date: April 2nd, 2020 -
breadcrumb-tmc/trunk/src/BreadcrumbGenerator.php
r2274344 r2275384 7 7 */ 8 8 9 namespace breadcrumb_tmc\v1_0_ 7;10 use sundawp\v1_0_ 3\SundaWP;9 namespace breadcrumb_tmc\v1_0_8; 10 use sundawp\v1_0_4\SundaWP; 11 11 12 12 13 if (! class_exists('sundawp\v1_0_ 3\SundaWP')) {13 if (! class_exists('sundawp\v1_0_4\SundaWP')) { 14 14 15 15 require dirname( plugin_dir_path( __FILE__ ) ) . '/lib/SundaWP/SundaWP.php'; … … 44 44 $item = sprintf('<li>%1$s</li>', SundaWP::getArchivePathLinkHtml() ); 45 45 $nodes[] = $item; 46 47 46 48 47 } … … 89 88 // ---------------------------------------- 90 89 90 91 91 if ( is_404() ) { 92 92 93 $item = sprintf('<li>%1$s</li>', SundaWP::getNotFoundPagePathLinkHtml() ); 93 94 $item = sprintf('<li>%1$s</li>', SundaWP::getPageNotFoundPathLinkHtml() ); 94 95 $nodes[] = $item; 95 96 96 97 } 97 98 98 99 99 -
breadcrumb-tmc/trunk/src/app.php
r2274344 r2275384 7 7 */ 8 8 9 use breadcrumb_tmc\v1_0_ 7\BreadcrumbGenerator;9 use breadcrumb_tmc\v1_0_8\BreadcrumbGenerator; 10 10 11 11 if (! class_exists( 'BreadcrumbGenerator' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.