Changeset 2604510
- Timestamp:
- 09/24/2021 04:09:36 PM (5 years ago)
- Location:
- breadcrumb-tmc/trunk
- Files:
-
- 3 edited
-
breadcrumb-tmc.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
src/BreadcrumbGenerator.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
breadcrumb-tmc/trunk/breadcrumb-tmc.php
r2515313 r2604510 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.3. 67 * Version: 1.3.7 8 8 * Requires at least: 5.0 9 9 * Requires PHP: 5.6 -
breadcrumb-tmc/trunk/readme.txt
r2515313 r2604510 5 5 Requires at least: 5.0 6 6 Requires PHP: 5.6 7 Tested up to: 5. 78 Stable tag: 1.3. 67 Tested up to: 5.8 8 Stable tag: 1.3.7 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.3.7 = 97 Release date: September 24, 2021 98 99 - Add: Support for search page template 100 - Tested with WordPress 5.8 101 102 96 103 = 1.3.6 = 97 104 Release date: April 14, 2021 -
breadcrumb-tmc/trunk/src/BreadcrumbGenerator.php
r2515313 r2604510 21 21 22 22 public static function getDisplay() { 23 24 $current_url = home_url( $_SERVER['REQUEST_URI'] ); 23 25 24 26 /** @var string[] $nodes */ … … 215 217 } 216 218 219 // ---------------------------------------- 220 // Search 221 // ---------------------------------------- 222 223 224 if ( is_search() ) { 225 226 $search = new PathNode(); 227 $search->setLabel( wp_trim_words( __('Search results','breadcrumb-tmc' ), $trimWords, $endingCharacter ) ); 228 $search->setHref( $current_url ); 229 $search->setPriority( 800 ); 230 $search->setSeparator( $separatorMark ); 231 232 $nodes[] = $search; 233 } 234 217 235 $numOfArrayElements = count( $nodes ); 218 236
Note: See TracChangeset
for help on using the changeset viewer.