Breadcrumb NavXT - Version 6.2.1

Version Description

Release date: October, 26th 2018

  • Behavior change: Added span element wrapping the breadcrumb title in the default unlinked breadcrumb template.
  • Bug fix: Fixed issue that caused PHP warnings and the following settings were not saved messages for hierarchical CPTs.
Download this release

Release Info

Developer mtekk
Plugin Icon 128x128 Breadcrumb NavXT
Version 6.2.1
Comparing to
See all releases

Code changes from version 6.2.0 to 6.2.1

breadcrumb-navxt.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Breadcrumb NavXT
4
  Plugin URI: http://mtekk.us/code/breadcrumb-navxt/
5
  Description: Adds a breadcrumb navigation showing the visitor&#39;s path to their current location. For details on how to use this plugin visit <a href="http://mtekk.us/code/breadcrumb-navxt/">Breadcrumb NavXT</a>.
6
- Version: 6.2.0
7
  Author: John Havlik
8
  Author URI: http://mtekk.us/
9
  License: GPL2
@@ -61,7 +61,7 @@ $breadcrumb_navxt = null;
61
  //TODO change to extends mtekk_plugKit
62
  class breadcrumb_navxt
63
  {
64
- const version = '6.2.0';
65
  protected $name = 'Breadcrumb NavXT';
66
  protected $identifier = 'breadcrumb-navxt';
67
  protected $unique_prefix = 'bcn';
@@ -85,7 +85,8 @@ class breadcrumb_navxt
85
  $this->plugin_basename = plugin_basename(__FILE__);
86
  //We need to add in the defaults for CPTs and custom taxonomies after all other plugins are loaded
87
  add_action('wp_loaded', array($this, 'wp_loaded'), 15);
88
- add_action('init', array($this, 'init'));
 
89
  //Register the WordPress 2.8 Widget
90
  add_action('widgets_init', array($this, 'register_widget'));
91
  //Load our network admin if in the network dashboard (yes is_network_admin() doesn't exist)
@@ -300,7 +301,17 @@ class breadcrumb_navxt
300
  $opts['Hpost_' . $post_type->name . '_template'] = bcn_breadcrumb::get_default_template();
301
  $opts['Hpost_' . $post_type->name . '_template_no_anchor'] = bcn_breadcrumb::default_template_no_anchor;
302
  }
303
- if(!$post_type->hierarchical && !isset($opts['Spost_' . $post_type->name . '_hierarchy_type']))
 
 
 
 
 
 
 
 
 
 
304
  {
305
  if($post_type->has_archive == true || is_string($post_type->has_archive))
306
  {
@@ -310,26 +321,30 @@ class breadcrumb_navxt
310
  {
311
  $opts['bpost_' . $post_type->name . '_archive_display'] = false;
312
  }
313
- //Default to not showing a post_root
314
- $opts['apost_' . $post_type->name . '_root'] = 0;
315
- //Default to not displaying a taxonomy
316
- $opts['bpost_' . $post_type->name . '_hierarchy_display'] = false;
317
- //Loop through all of the possible taxonomies
318
- foreach($wp_taxonomies as $taxonomy)
319
  {
320
- //Check for non-public taxonomies
321
- if(!apply_filters('bcn_show_tax_private', $taxonomy->public, $taxonomy->name, $post_type->name))
322
- {
323
- continue;
324
- }
325
- //Activate the first taxonomy valid for this post type and exit the loop
326
- if($taxonomy->object_type == $post_type->name || in_array($post_type->name, $taxonomy->object_type))
327
  {
328
- $opts['bpost_' . $post_type->name . '_hierarchy_display'] = true;
329
- $opts['Spost_' . $post_type->name . '_hierarchy_type'] = $taxonomy->name;
330
- break;
 
 
 
 
 
 
 
 
 
331
  }
332
  }
 
 
 
 
 
333
  //If there are no valid taxonomies for this type, setup our defaults
334
  if(!isset($opts['Spost_' . $post_type->name . '_hierarchy_type']))
335
  {
3
  Plugin Name: Breadcrumb NavXT
4
  Plugin URI: http://mtekk.us/code/breadcrumb-navxt/
5
  Description: Adds a breadcrumb navigation showing the visitor&#39;s path to their current location. For details on how to use this plugin visit <a href="http://mtekk.us/code/breadcrumb-navxt/">Breadcrumb NavXT</a>.
6
+ Version: 6.2.1
7
  Author: John Havlik
8
  Author URI: http://mtekk.us/
9
  License: GPL2
61
  //TODO change to extends mtekk_plugKit
62
  class breadcrumb_navxt
63
  {
64
+ const version = '6.2.1';
65
  protected $name = 'Breadcrumb NavXT';
66
  protected $identifier = 'breadcrumb-navxt';
67
  protected $unique_prefix = 'bcn';
85
  $this->plugin_basename = plugin_basename(__FILE__);
86
  //We need to add in the defaults for CPTs and custom taxonomies after all other plugins are loaded
87
  add_action('wp_loaded', array($this, 'wp_loaded'), 15);
88
+ //Run a little later than everyone else
89
+ add_action('init', array($this, 'init'), 11);
90
  //Register the WordPress 2.8 Widget
91
  add_action('widgets_init', array($this, 'register_widget'));
92
  //Load our network admin if in the network dashboard (yes is_network_admin() doesn't exist)
301
  $opts['Hpost_' . $post_type->name . '_template'] = bcn_breadcrumb::get_default_template();
302
  $opts['Hpost_' . $post_type->name . '_template_no_anchor'] = bcn_breadcrumb::default_template_no_anchor;
303
  }
304
+ if(!isset($opts['apost_' . $post_type->name . '_root']))
305
+ {
306
+ //Default to not showing a post_root
307
+ $opts['apost_' . $post_type->name . '_root'] = 0;
308
+ }
309
+ if(!isset($opts['bpost_' . $post_type->name . '_hierarchy_display']))
310
+ {
311
+ //Default to not displaying a taxonomy
312
+ $opts['bpost_' . $post_type->name . '_hierarchy_display'] = false;
313
+ }
314
+ if(!isset($opts['Spost_' . $post_type->name . '_hierarchy_type']))
315
  {
316
  if($post_type->has_archive == true || is_string($post_type->has_archive))
317
  {
321
  {
322
  $opts['bpost_' . $post_type->name . '_archive_display'] = false;
323
  }
324
+ if(!$post_type->hierarchical)
 
 
 
 
 
325
  {
326
+ //Loop through all of the possible taxonomies
327
+ foreach($wp_taxonomies as $taxonomy)
 
 
 
 
 
328
  {
329
+ //Check for non-public taxonomies
330
+ if(!apply_filters('bcn_show_tax_private', $taxonomy->public, $taxonomy->name, $post_type->name))
331
+ {
332
+ continue;
333
+ }
334
+ //Activate the first taxonomy valid for this post type and exit the loop
335
+ if($taxonomy->object_type == $post_type->name || in_array($post_type->name, $taxonomy->object_type))
336
+ {
337
+ $opts['bpost_' . $post_type->name . '_hierarchy_display'] = true;
338
+ $opts['Spost_' . $post_type->name . '_hierarchy_type'] = $taxonomy->name;
339
+ break;
340
+ }
341
  }
342
  }
343
+ else
344
+ {
345
+ $opts['bpost_' . $post_type->name . '_hierarchy_display'] = true;
346
+ $opts['Spost_' . $post_type->name . '_hierarchy_type'] = 'BCN_PARENT';
347
+ }
348
  //If there are no valid taxonomies for this type, setup our defaults
349
  if(!isset($opts['Spost_' . $post_type->name . '_hierarchy_type']))
350
  {
class.bcn_admin.php CHANGED
@@ -43,7 +43,7 @@ if(!class_exists('mtekk_adminKit'))
43
  */
44
  class bcn_admin extends mtekk_adminKit
45
  {
46
- const version = '6.2.0';
47
  protected $full_name = 'Breadcrumb NavXT Settings';
48
  protected $short_name = 'Breadcrumb NavXT';
49
  protected $access_level = 'manage_options';
43
  */
44
  class bcn_admin extends mtekk_adminKit
45
  {
46
+ const version = '6.2.1';
47
  protected $full_name = 'Breadcrumb NavXT Settings';
48
  protected $short_name = 'Breadcrumb NavXT';
49
  protected $access_level = 'manage_options';
class.bcn_breadcrumb.php CHANGED
@@ -21,7 +21,7 @@ require_once(dirname(__FILE__) . '/includes/block_direct_access.php');
21
  class bcn_breadcrumb
22
  {
23
  //Our member variables
24
- const version = '6.2.0';
25
  //The main text that will be shown
26
  protected $title;
27
  //The breadcrumb's template, used durring assembly
@@ -38,7 +38,7 @@ class bcn_breadcrumb
38
  //The type of this breadcrumb
39
  protected $type;
40
  protected $allowed_html = array();
41
- const default_template_no_anchor = '%htitle%';
42
  /**
43
  * The enhanced default constructor, ends up setting all parameters via the set_ functions
44
  *
21
  class bcn_breadcrumb
22
  {
23
  //Our member variables
24
+ const version = '6.2.1';
25
  //The main text that will be shown
26
  protected $title;
27
  //The breadcrumb's template, used durring assembly
38
  //The type of this breadcrumb
39
  protected $type;
40
  protected $allowed_html = array();
41
+ const default_template_no_anchor = '<span class="%type%">%htitle%</span>';
42
  /**
43
  * The enhanced default constructor, ends up setting all parameters via the set_ functions
44
  *
class.bcn_breadcrumb_trail.php CHANGED
@@ -21,7 +21,7 @@ require_once(dirname(__FILE__) . '/includes/block_direct_access.php');
21
  class bcn_breadcrumb_trail
22
  {
23
  //Our member variables
24
- const version = '6.2.0';
25
  //An array of breadcrumbs
26
  public $breadcrumbs = array();
27
  public $trail = array();
@@ -76,7 +76,7 @@ class bcn_breadcrumb_trail
76
  'apost_page_root' => get_option('page_on_front'),
77
  //Paged options
78
  //The template for paged breadcrumb
79
- 'Hpaged_template' => sprintf('<span property="itemListElement" typeof="ListItem"><span property="name">%1$s</span><meta property="position" content="%%position%%"></span>', esc_attr__('Page %htitle%', 'breadcrumb-navxt')),
80
  //Should we try filling out paged information
81
  'bpaged_display' => false,
82
  //The post options previously singleblogpost
@@ -117,7 +117,7 @@ class bcn_breadcrumb_trail
117
  sprintf(esc_attr__('Search results for &#39;%1$s&#39;', 'breadcrumb-navxt'),
118
  sprintf('<a property="item" typeof="WebPage" title="%1$s" href="%%link%%" class="%%type%%">%%htitle%%</a>', esc_attr__('Go to the first page of search results for %title%.', 'breadcrumb-navxt')))),
119
  //The breadcrumb template for search breadcrumbs, used when an anchor is not necessary
120
- 'Hsearch_template_no_anchor' => sprintf('<span property="itemListElement" typeof="ListItem"><span property="name">%1$s</span><meta property="position" content="%%position%%"></span>',
121
  sprintf(esc_attr__('Search results for &#39;%1$s&#39;', 'breadcrumb-navxt'), '%htitle%')),
122
  //Tag related stuff
123
  //The breadcrumb template for tag breadcrumbs
@@ -135,7 +135,7 @@ class bcn_breadcrumb_trail
135
  sprintf(esc_attr__('Articles by: %1$s', 'breacrumb-navxt'),
136
  sprintf('<a title="%1$s" href="%%link%%" class="%%type%%">%%htitle%%</a>', esc_attr__('Go to the first page of posts by %title%.', 'breadcrumb-navxt')))),
137
  //The anchor template for author breadcrumbs, used when anchors are not needed
138
- 'Hauthor_template_no_anchor' => sprintf('<span property="itemListElement" typeof="ListItem"><span property="name">%1$s</span><meta property="position" content="%%position%%"></span>',
139
  sprintf(esc_attr__('Articles by: %1$s', 'breacrumb-navxt'), '%htitle%')),
140
  //Which of the various WordPress display types should the author breadcrumb display
141
  'Sauthor_name' => 'display_name',
21
  class bcn_breadcrumb_trail
22
  {
23
  //Our member variables
24
+ const version = '6.2.1';
25
  //An array of breadcrumbs
26
  public $breadcrumbs = array();
27
  public $trail = array();
76
  'apost_page_root' => get_option('page_on_front'),
77
  //Paged options
78
  //The template for paged breadcrumb
79
+ 'Hpaged_template' => sprintf('<span class="%%type%%">%1$s</span>', esc_attr__('Page %htitle%', 'breadcrumb-navxt')),
80
  //Should we try filling out paged information
81
  'bpaged_display' => false,
82
  //The post options previously singleblogpost
117
  sprintf(esc_attr__('Search results for &#39;%1$s&#39;', 'breadcrumb-navxt'),
118
  sprintf('<a property="item" typeof="WebPage" title="%1$s" href="%%link%%" class="%%type%%">%%htitle%%</a>', esc_attr__('Go to the first page of search results for %title%.', 'breadcrumb-navxt')))),
119
  //The breadcrumb template for search breadcrumbs, used when an anchor is not necessary
120
+ 'Hsearch_template_no_anchor' => sprintf('<span class="%%type%%">%1$s</span>',
121
  sprintf(esc_attr__('Search results for &#39;%1$s&#39;', 'breadcrumb-navxt'), '%htitle%')),
122
  //Tag related stuff
123
  //The breadcrumb template for tag breadcrumbs
135
  sprintf(esc_attr__('Articles by: %1$s', 'breacrumb-navxt'),
136
  sprintf('<a title="%1$s" href="%%link%%" class="%%type%%">%%htitle%%</a>', esc_attr__('Go to the first page of posts by %title%.', 'breadcrumb-navxt')))),
137
  //The anchor template for author breadcrumbs, used when anchors are not needed
138
+ 'Hauthor_template_no_anchor' => sprintf('<span class="%%type%%">%1$s</span>',
139
  sprintf(esc_attr__('Articles by: %1$s', 'breacrumb-navxt'), '%htitle%')),
140
  //Which of the various WordPress display types should the author breadcrumb display
141
  'Sauthor_name' => 'display_name',
class.bcn_network_admin.php CHANGED
@@ -28,7 +28,7 @@ if(!class_exists('bcn_admin'))
28
  */
29
  class bcn_network_admin extends bcn_admin
30
  {
31
- const version = '6.2.0';
32
  protected $full_name = 'Breadcrumb NavXT Network Settings';
33
  protected $access_level = 'manage_network_options';
34
  /**
28
  */
29
  class bcn_network_admin extends bcn_admin
30
  {
31
+ const version = '6.2.1';
32
  protected $full_name = 'Breadcrumb NavXT Network Settings';
33
  protected $access_level = 'manage_network_options';
34
  /**
class.bcn_widget.php CHANGED
@@ -19,7 +19,7 @@
19
  require_once(dirname(__FILE__) . '/includes/block_direct_access.php');
20
  class bcn_widget extends WP_Widget
21
  {
22
- const version = '6.2.0';
23
  protected $allowed_html = array();
24
  protected $defaults = array('title' => '', 'pretext' => '', 'type' => 'microdata', 'linked' => true, 'reverse' => false, 'front' => false, 'force' => false);
25
  //Default constructor
19
  require_once(dirname(__FILE__) . '/includes/block_direct_access.php');
20
  class bcn_widget extends WP_Widget
21
  {
22
+ const version = '6.2.1';
23
  protected $allowed_html = array();
24
  protected $defaults = array('title' => '', 'pretext' => '', 'type' => 'microdata', 'linked' => true, 'reverse' => false, 'front' => false, 'force' => false);
25
  //Default constructor
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: mtekk, hakre
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=FD5XEU783BR8U&lc=US&item_name=Breadcrumb%20NavXT%20Donation&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
4
  Tags: breadcrumb, breadcrumbs, trail, navigation, menu, widget
5
  Requires at least: 4.7
6
- Tested up to: 4.9.8
7
- Stable tag: 6.2.0
8
  Requires PHP: 5.3
9
  License: GPLv2 or later
10
  Adds breadcrumb navigation showing the visitor's path to their current location.
@@ -49,6 +49,12 @@ Please visit [Breadcrumb NavXT's Documentation](http://mtekk.us/code/breadcrumb-
49
 
50
  == Changelog ==
51
 
 
 
 
 
 
 
52
  = 6.2.0 =
53
  Release date: September, 24th 2018
54
 
@@ -118,172 +124,6 @@ Release date: December, 26th 2017
118
  * Bug fix: Fixed UI/UX issue in the settings screen where not including the paged breadcrumb still allowed the paged breadcrumb template to be edited.
119
  * Bug fix: Removed use of `create_function` in registering the widget as it was deprecated in PHP 7.2.
120
 
121
- = 5.7.1 =
122
- Release date: June 30th, 2017
123
-
124
- * Bug fix: Fixed erroneous use of `$linked` that caused a PHP warning in `bcn_display_json_ld()`.
125
- * Bug fix: Fixed issue where removing a breadcrumb from the trail could cause one or more breadcrumb separators to inappropriately disappear.
126
-
127
- = 5.7.0 =
128
- Release date: April 21st, 2017
129
-
130
- * New feature: Added `bcn_display_json_ld(`) function for producing Schema.org BreadcrumbList compliant JSON-LD markup.
131
- * Bug fix: Fixed issue where the uninstaller caused PHP Errors when ran from WP CLI.
132
- * Bug fix: Fixed issue where `bcn_breadcrumb_trail::find_type()` caused a PHP Warnings in certain circumstances.
133
- * Bug fix: Fixed typo in the administrative interface.
134
-
135
- = 5.6.0 =
136
- Release date: December 23rd, 2016
137
-
138
- * New feature: Added fourth parameter, `$force`, to `bcn_display()`, and `bcn_display_list()` allowing the internal caching mechanism to be bypassed.
139
- * New feature: Moved to multiple line text boxes rather than regular single line text inputs for the breadcrumb templates in the settings page to enhance visibility.
140
- * Bug fix: Fixed issue where general searches had the blog breadcrumb in the breadcrumb trail.
141
- * Bug fix: Fixed issue where the blog breadcrumb options were erroneously made available when a Posts Page was not set.
142
-
143
- = 5.5.2 =
144
- Release date: September 30th, 2016
145
-
146
- * Bug fix: Fixed issue where the “blog breadcrumb” setting does not affect the inclusion of the blog breadcrumb in the breadcrumb trail.
147
-
148
- = 5.5.1 =
149
- Release date: August 13th, 2016
150
-
151
- * Bug fix: Fixed issue in `bcn_breadcrumb_trail::find_type()` that identified pages as posts, causing the erroneous inclusion of the post root in the breadcrumb trail for pages.
152
-
153
- = 5.5.0 =
154
- Release date: August 12th, 2016
155
-
156
- * Behavior change: Internal mechanics to handle post parents as the hierarchy for a post (of any post type) has changed to use 'BCN_POST_PARENT' rather than 'page' for the taxonomy_type.
157
- * Behavior change: Internal mechanics to handle dates as the hierarchy for a post (of any post type) has changed to use 'BCN_DATE' rather than 'date' for the taxonomy_type.
158
- * Behavior change: Taxonomy term hierarchy selection logic in `bcn_breadcrumb_trail::pick_post_term()` has changed to picking the deepest known child of the first hierarchy found in the list of terms returned by `get_the_terms()` rather than the first term with a child.
159
- * New feature: Added support for referer influenced taxonomy selection for a post's (any post type) breadcrumb trail.
160
- * New feature: Added `translate` and `lang` as valid attributes for tags within breadcrumb templates.
161
- * New feature: Added `srcset` and `sizes` as valid attributes for `img` tags within breadcrumb templates.
162
- * New feature: Added `itemprop` as a valid attribute for the `meta` tags within breadcrumb templates.
163
- * Bug fix: Fixed various issues caused by other plugins/themes modifying the `$post` global.
164
- * Bug fix: Fixed issue where WPML Extensions would cause a CPT without a set root page to use the Post post type's root page.
165
-
166
- = 5.4.0 =
167
- Release date: March 15th, 2016
168
-
169
- * Behavior change: Migrated to new adminKit version, some functions previously in the admin classes are now handled upstream.
170
- * New feature: Added `bcn_post_terms` filter to `bcn_breadcrumb_trail::post_terms()` to control the terms included in a non-hierarchical term breadcrumb for a post.
171
- * New feature: Added `bcn_add_post_type_arg` filter to `bcn_breadcrumb_trail::maybe_add_post_type_arg()` to control when the post_type argument is added to URLs for archives.
172
- * New feature: Added `bcn_pick_post_term` filter to `bcn_breadcrumb_trail::post_hierarchy()` to allow overriding Breadcrumb NavXT’s default term selection behavior.
173
- * Bug fix: Fixed issue with untranslatable title on the settings page.
174
- * Bug fix: Cleanup of several trivial differences between `bcn_admin` and `bcn_network_admin`.
175
- * Bug fix: Fixed improper display of “Your settings are out of date. Migrate now.” message on fresh installs.
176
- * Bug fix: Clarified verbiage in regards to the paged breadcrumb.
177
- * Bug fix: Added translation wrappers for date format strings in `bcn_breadcrumb_trail::do_archive_by_date()`.
178
- * Bug fix: Fixed issue where `bcn_breadcrumb_trail::is_builtin()` would cause PHP warnings when the passed in post type was not an actual post type.
179
- * Bug fix: Fixed issue that would cause a PHP error if `WP_Widget` is unavailable.
180
-
181
- = 5.3.1 =
182
- Release date: December 14th, 2015
183
-
184
- * Bug fix: Fixed alignment issue of the main content of the settings page on WordPress 4.4.
185
- * Bug fix: Fixed error caused by options upgrading not re-establishing new settings.
186
- * Bug fix: Fixed PHP error caused by `bcn_breadcrumb_trail::get_type_string_query_var()` returning an array when the post_type query variable is an array.
187
-
188
- = 5.3.0 =
189
- Release date: November 12th, 2015
190
-
191
- * Behavior change: Breadcrumb NavXT will no longer default to setting the root page for CPTs.
192
- * Behavior change: Breadcrumb NavXT will no longer inject a breadcrumb for a CPT archive page if a root page is set for that CPT.
193
- * Behavior change: Breadcrumb NavXT now defaults to `BCN_SETTINGS_USE_LOCAL` rather than `BCN_SETTINGS_USE_NETWORK` if all of the `BCN_SETTINGS_*` globals are not defined.
194
- * Behavior change: The included widget now supports RDFA style, Schema.org BreadcrumbList format rather than the deprecated Google Breadcrumbs format.
195
- * Behavior change: Default settings for breadcrumb templates now conform to RDFA style, Schema.org BreadcrumbList format rather than the deprecated Google Breadcrumbs format.
196
- * New feature: Added `bcn_widget_display_trail` action to enhance the included widget’s extensibility.
197
- * New feature: Added `bcn_widget_display_types` action to enhance the included widget’s extensibility.
198
- * New feature: The plugin uninstaller has been re-factored, includes support for uninstalling in PHP5.2.
199
- * New feature: Unit tests added for all non-deprecated features in bcn_breadcrumb.
200
- * New feature: Unit tests added for the uninstaller.
201
- * New feature: Date based hierarchies are now available for CPTs.
202
- * New feature: Date archives restricted by CPT are now supported.
203
- * New feature: Taxonomy archives restricted by CPT are now supported.
204
- * Bug fix: Fixed issue where the multibyte supplicant functions were not always being included due to WordPress shipping with its own subset of theses functions.
205
- * Bug fix: Fixed issue where on an archive for a post type the archive breadcrumb would appear twice.
206
-
207
- = 5.2.2 =
208
- Release date: June 1st, 2015
209
-
210
- * Bug fix: Fixed issue where the current item would use a built in default template rather than the breadcrumb template in the settings.
211
- * Bug fix: Updated currently distributed translations set and list to match the current set of translations that achieve the 90% completeness threshold for inclusion.
212
- * Bug fix: Fixed issue where a PHP warning would be displayed when BCN_SETTINGS_USE_NETWORK is defined.
213
-
214
- = 5.2.1 =
215
- Release date: May 25th, 2015
216
-
217
- * Bug fix: Added additional checks for empty URLs and templates within `bcn_breadcrumb` to prevent various bugs when empty URLs and/or templates are passed in.
218
- * Bug fix: Move away from building URLs for search breadcrumbs and instead using `get_search_link()` to fix support for pretty permalinks.
219
- * Bug fix: Fixed issue where media items (attachments) that have not been attached to a post yet would cause an incorrect breadcrumb trail to be generated.
220
- * Bug fix: Fixed issue where attachments of the front page would cause PHP Warnings.
221
- * Bug fix: Fixed issue where attachments of the front page would have duplicate breadcrumbs for the home page.
222
- * Bug fix: Fixed issue where attachments of pages would have an extraneous breadcrumb relating to the page for posts.
223
- * Bug fix: Fixed issue with the text domain/domain path in the plugin header.
224
-
225
- = 5.2.0 =
226
- Release date: January 9th, 2015
227
-
228
- * Deprecated: The Max Breadcrumb Length setting has been deprecated in favor of [using CSS styling to perform the length limiting](http://mtekk.us/archives/guides/trimming-breadcrumb-title-lengths-with-css/ "Go to the article presenting how to shorten the breadcrumb title length using CSS").
229
- * Behavior change: The archive page for a post type is now generated for the top ancestor post rather than for the current page when "post parent" is used as the post's hierarchy.
230
- * Behavior change: Now requires PHP5.3 or newer.
231
- * New feature: Added `bcn_type_archive_post_type` filter.
232
- * New feature: Settings depending on another setting to be enabled are disabled when the dependency setting is disabled.
233
- * New feature: More descriptive messages on settings saving (notify user on success, failure, and no changes to save).
234
- * Bug fix: Fixed awkward wording in the settings page for post hierarchy settings.
235
- * Bug fix: Fixed missed default templates for post formats when all taxonomy settings had the tax_ prefix added in 5.1.
236
- * Bug fix: Fixed bulk of compatibility issues with bbPress.
237
-
238
- = 5.1.1 =
239
- Release date: July 29th, 2014
240
-
241
- * Bug fix: Fixed issue where attachments and their parents have the same link when 'link current item' is enabled.
242
- * Bug fix: Pass the same parameters into the widget title and (pre) text filters as the default WordPress widgets.
243
- * Bug fix: Fixed issue where PHP warnings would be thrown on author pages for authors that do not have any posts.
244
- * Bug fix: Reduced severity of `$post` global not being of type `WP_Post`, will silently exit on non-WP_DEBUG enabled sites.
245
-
246
- = 5.1.0 =
247
- Release date: June 9th, 2014
248
-
249
- * Behavior change: `bcn_breadcrumb_trail::do_post()` now expects to be passed in a valid WP_Post object.
250
- * Behavior change: `breadcrumb_navxt::version` changed to a constant to allow uninstantiated access of the plugin version.
251
- * New feature: Support Google's RDFa Breadcrumbs microformat by default.
252
- * New feature: Added `bcn_opts_update_prebk` filter.
253
- * Bug fix: Validate HTML5 options on tab traversal.
254
- * Bug fix: Fixed issue where the settings importer parsed the version string incorrectly.
255
- * Bug fix: Added 'typeof' to list of valid HTML tag attributes.
256
- * Bug fix: Prefixed all taxonomies with 'tax_' to prevent name collisions.
257
- * Bug fix: Added ID to Post and Taxonomy Term Elements in `bcn_breadcrumb_trail::do_root()` as is done everywhere else.
258
- * Bug fix: Fixed issue with `bcn_breadcrumb_trail::do_author()` returning the incorrect user under some circumstances.
259
- * Bug fix: Fixed issue where saving twice on a tab in the settings page would cause the next page load to open the general tab rather than the current tab.
260
- * Bug fix: Added bcn_breadcrumb_template filter back into `bcn_breadcrumb::set_template()`, was a regression in 5.0 from 4.4.
261
- * Bug fix: Fixed issue where the included widget did not check against default settings, causing PHP Warnings to show up on the frontend under some circumstances.
262
- * Bug fix: Fixed issue where we didn't handle `WP_POST::has_archive` correctly when it was a string, causing issues with CPTs generated by some plugins.
263
- * Bug fix: Fixed issue where the default taxonomy selected for a CPT could be a non-public taxonomy.
264
- * Bug fix: Attachments get their own title within the settings page now.
265
- * Bug fix: Filter the title and pre text in the widget.
266
-
267
- = 5.0.1 =
268
- Release date: December 31st, 2013
269
-
270
- * Behavior Change: Notify multisite users when settings may be overridden by the network settings and vice versa.
271
- * Bug fix: Updated tab style to match WordPress 3.8 look and feel.
272
- * Bug fix: Fixed issue where `bcn_breadcrumb_trail::display_list()` would produce multiple instances of the class attribute.
273
- * Bug fix: Fixed several issues with the uninstaller.
274
-
275
- = 5.0.0 =
276
- Release date: November 20th, 2013
277
-
278
- * Behavior Change: Moved `bcn_breadcrumb_trail::trail` to `bcn_breadcrumb_trail::breadcrumbs`
279
- * Behavior Change: When WordPress is in multisite/network mode, the settings set in the network settings page take priority over subsite settings.
280
- * New feature: Added `bcn_breadcrumb_trail_object` filter.
281
- * New feature: Added `bcn_li_attributes` filter.
282
- * New feature: Added `bcn_breadcrumb_types` filter.
283
- * New feature: Added Network Admin Settings page.
284
- * New feature: Added `xmlns:v` and `property` to the valid tag attributes.
285
- * Bug fix: The current_item breadcrumb for search results should result in a valid HTTPS link when appropriate.
286
-
287
  == Upgrade Notice ==
288
  = 6.0.0 =
289
  This version requires PHP5.3 or newer. This version introduces three new filters and deprecates a filter.
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=FD5XEU783BR8U&lc=US&item_name=Breadcrumb%20NavXT%20Donation&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
4
  Tags: breadcrumb, breadcrumbs, trail, navigation, menu, widget
5
  Requires at least: 4.7
6
+ Tested up to: 5.0.0
7
+ Stable tag: 6.2.1
8
  Requires PHP: 5.3
9
  License: GPLv2 or later
10
  Adds breadcrumb navigation showing the visitor's path to their current location.
49
 
50
  == Changelog ==
51
 
52
+ = 6.2.1 =
53
+ Release date: October, 26th 2018
54
+
55
+ * Behavior change: Added `span` element wrapping the breadcrumb title in the default unlinked breadcrumb template.
56
+ * Bug fix: Fixed issue that caused PHP warnings and “the following settings were not saved” messages for hierarchical CPTs.
57
+
58
  = 6.2.0 =
59
  Release date: September, 24th 2018
60
 
124
  * Bug fix: Fixed UI/UX issue in the settings screen where not including the paged breadcrumb still allowed the paged breadcrumb template to be edited.
125
  * Bug fix: Removed use of `create_function` in registering the widget as it was deprecated in PHP 7.2.
126
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  == Upgrade Notice ==
128
  = 6.0.0 =
129
  This version requires PHP5.3 or newer. This version introduces three new filters and deprecates a filter.