Version Description
Release date: January, 26th 2018
- Behavior change: Added auto migration of post type hierarchy settings to
bcn_display*()
functions. - Bug fix: Fixed issue where a PHP notice would be generated on the page for posts when the blog breadcrumb display option is set to false.
- Bug fix: Fixed issue where a PHP notice would be generated on archive pages where attachments were included in the
wp_query
results.
Download this release
Release Info
Developer | mtekk |
Plugin | Breadcrumb NavXT |
Version | 6.0.4 |
Comparing to | |
See all releases |
Code changes from version 6.0.3 to 6.0.4
- breadcrumb-navxt.php +17 -2
- class.bcn_admin.php +1 -1
- class.bcn_breadcrumb.php +1 -1
- class.bcn_breadcrumb_trail.php +12 -3
- class.bcn_network_admin.php +1 -1
- class.bcn_widget.php +1 -1
- readme.txt +11 -7
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'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.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.0.
|
65 |
protected $name = 'Breadcrumb NavXT';
|
66 |
protected $identifier = 'breadcrumb-navxt';
|
67 |
protected $unique_prefix = 'bcn';
|
@@ -397,6 +397,21 @@ class breadcrumb_navxt
|
|
397 |
$this->breadcrumb_trail->opt['apost_page_root'] = get_option('page_on_front');
|
398 |
//This one isn't needed as it is performed in bcn_breadcrumb_trail::fill(), it's here for completeness only
|
399 |
$this->breadcrumb_trail->opt['apost_post_root'] = get_option('page_for_posts');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
400 |
}
|
401 |
/**
|
402 |
* Outputs the breadcrumb trail
|
3 |
Plugin Name: Breadcrumb NavXT
|
4 |
Plugin URI: http://mtekk.us/code/breadcrumb-navxt/
|
5 |
Description: Adds a breadcrumb navigation showing the visitor'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.0.4
|
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.0.4';
|
65 |
protected $name = 'Breadcrumb NavXT';
|
66 |
protected $identifier = 'breadcrumb-navxt';
|
67 |
protected $unique_prefix = 'bcn';
|
397 |
$this->breadcrumb_trail->opt['apost_page_root'] = get_option('page_on_front');
|
398 |
//This one isn't needed as it is performed in bcn_breadcrumb_trail::fill(), it's here for completeness only
|
399 |
$this->breadcrumb_trail->opt['apost_post_root'] = get_option('page_for_posts');
|
400 |
+
|
401 |
+
//Loop through all of the post types in the array, migrate automatically if necessary
|
402 |
+
foreach($GLOBALS['wp_post_types'] as $post_type)
|
403 |
+
{
|
404 |
+
if(isset($this->opt['Spost_' . $post_type->name . '_taxonomy_type']))
|
405 |
+
{
|
406 |
+
$this->opt['Spost_' . $post_type->name . '_hierarchy_type'] = $this->opt['Spost_' . $post_type->name . '_taxonomy_type'];
|
407 |
+
unset($this->opt['Spost_' . $post_type->name . '_taxonomy_type']);
|
408 |
+
}
|
409 |
+
if(isset($this->opt['Spost_' . $post_type->name . '_taxonomy_display']))
|
410 |
+
{
|
411 |
+
$this->opt['Spost_' . $post_type->name . '_hierarchy_display'] = $this->opt['Spost_' . $post_type->name . '_taxonomy_display'];
|
412 |
+
unset($this->opt['Spost_' . $post_type->name . '_taxonomy_display']);
|
413 |
+
}
|
414 |
+
}
|
415 |
}
|
416 |
/**
|
417 |
* Outputs the breadcrumb trail
|
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.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.0.4';
|
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.0.
|
25 |
//The main text that will be shown
|
26 |
protected $title;
|
27 |
//The breadcrumb's template, used durring assembly
|
21 |
class bcn_breadcrumb
|
22 |
{
|
23 |
//Our member variables
|
24 |
+
const version = '6.0.4';
|
25 |
//The main text that will be shown
|
26 |
protected $title;
|
27 |
//The breadcrumb's template, used durring assembly
|
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.0.
|
25 |
//An array of breadcrumbs
|
26 |
public $breadcrumbs = array();
|
27 |
public $trail = array();
|
@@ -91,6 +91,11 @@ class bcn_breadcrumb_trail
|
|
91 |
//What hierarchy should be shown leading to the post, tag or category
|
92 |
'Spost_post_hierarchy_type' => 'category',
|
93 |
//Attachment settings
|
|
|
|
|
|
|
|
|
|
|
94 |
//The breadcrumb template for attachment breadcrumbs
|
95 |
'Hpost_attachment_template' => bcn_breadcrumb::get_default_template(),
|
96 |
//The breadcrumb template for attachment breadcrumbs, used when an anchor is not needed
|
@@ -1083,11 +1088,15 @@ class bcn_breadcrumb_trail
|
|
1083 |
$this->type_archive($type);
|
1084 |
$type_str = $this->get_type_string_query_var($wp_taxonomies[$type->taxonomy]->object_type[0]);
|
1085 |
}
|
1086 |
-
|
|
|
1087 |
{
|
1088 |
$type_str = 'post';
|
1089 |
}
|
1090 |
-
|
|
|
|
|
|
|
1091 |
}
|
1092 |
//We always do the home link last, unless on the frontpage
|
1093 |
if(!is_front_page())
|
21 |
class bcn_breadcrumb_trail
|
22 |
{
|
23 |
//Our member variables
|
24 |
+
const version = '6.0.4';
|
25 |
//An array of breadcrumbs
|
26 |
public $breadcrumbs = array();
|
27 |
public $trail = array();
|
91 |
//What hierarchy should be shown leading to the post, tag or category
|
92 |
'Spost_post_hierarchy_type' => 'category',
|
93 |
//Attachment settings
|
94 |
+
'bpost_attachment_hierarchy_display' => true,
|
95 |
+
//What hierarchy should be shown leading to the attachment
|
96 |
+
'Spost_attachment_hierarchy_type' => 'BCN_POST_PARENT',
|
97 |
+
//Give an invlaid page ID for the attachement root
|
98 |
+
'apost_attachment_root' => 0,
|
99 |
//The breadcrumb template for attachment breadcrumbs
|
100 |
'Hpost_attachment_template' => bcn_breadcrumb::get_default_template(),
|
101 |
//The breadcrumb template for attachment breadcrumbs, used when an anchor is not needed
|
1088 |
$this->type_archive($type);
|
1089 |
$type_str = $this->get_type_string_query_var($wp_taxonomies[$type->taxonomy]->object_type[0]);
|
1090 |
}
|
1091 |
+
//Otherwise, it's likely the blog page
|
1092 |
+
else if($this->opt['bblog_display'] || is_home())
|
1093 |
{
|
1094 |
$type_str = 'post';
|
1095 |
}
|
1096 |
+
if(isset($this->opt['apost_' . $type_str . '_root']))
|
1097 |
+
{
|
1098 |
+
$this->do_root($type_str, $this->opt['apost_' . $type_str . '_root'], is_paged(), $this->treat_as_root_page($type_str));
|
1099 |
+
}
|
1100 |
}
|
1101 |
//We always do the home link last, unless on the frontpage
|
1102 |
if(!is_front_page())
|
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.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.0.4';
|
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.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.0.4';
|
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
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=FD5XE
|
|
4 |
Tags: breadcrumb, breadcrumbs, trail, navigation, menu, widget
|
5 |
Requires at least: 4.7
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 6.0.
|
8 |
Requires PHP: 5.3
|
9 |
License: GPLv2 or later
|
10 |
Adds breadcrumb navigation showing the visitor's path to their current location.
|
@@ -33,12 +33,9 @@ Breadcrumb NavXT 5.1.1 and older require PHP5.2
|
|
33 |
Breadcrumb NavXT now supports WordPress.org language packs. Want to translate Breadcrumb NavXT? Visit [Breadcrumb NavXT's WordPress.org translation project](https://translate.wordpress.org/projects/wp-plugins/breadcrumb-navxt/).
|
34 |
|
35 |
== Installation ==
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
bcn_display();
|
40 |
-
}`
|
41 |
-
Save the file (upload if applicable). Now you should have a breadcrumb trail on your WordPress powered site. To customize the breadcrumb trail you may edit the default values for the options in the administrative interface. This is located in your administration panel under Settings > Breadcrumb NavXT. See the [Calling the Breadcrumb Trail](http://mtekk.us/archives/guides/calling-the-breadcrumb-trail "Read more on calling the breadcrumb trail") article for more information on calling the breadcrumb trail.
|
42 |
|
43 |
Please visit [Breadcrumb NavXT's Documentation](http://mtekk.us/code/breadcrumb-navxt/breadcrumb-navxt-doc/ "Go to Breadcrumb NavXT's Documentation.") page for more information.
|
44 |
|
@@ -52,6 +49,13 @@ Please visit [Breadcrumb NavXT's Documentation](http://mtekk.us/code/breadcrumb-
|
|
52 |
|
53 |
== Changelog ==
|
54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
= 6.0.3 =
|
56 |
Release date: January, 1st 2018
|
57 |
|
4 |
Tags: breadcrumb, breadcrumbs, trail, navigation, menu, widget
|
5 |
Requires at least: 4.7
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 6.0.4
|
8 |
Requires PHP: 5.3
|
9 |
License: GPLv2 or later
|
10 |
Adds breadcrumb navigation showing the visitor's path to their current location.
|
33 |
Breadcrumb NavXT now supports WordPress.org language packs. Want to translate Breadcrumb NavXT? Visit [Breadcrumb NavXT's WordPress.org translation project](https://translate.wordpress.org/projects/wp-plugins/breadcrumb-navxt/).
|
34 |
|
35 |
== Installation ==
|
36 |
+
Breadcrumb NavXT can be installed from within WordPress’ administration panel. After installing and activating the plugin, to get breadcrumb trails to display either use the included widget, or call the breadcrumb trail in your theme (or child theme). See the [Calling the Breadcrumb Trail](http://mtekk.us/archives/guides/calling-the-breadcrumb-trail "Read more on calling the breadcrumb trail") article for more information on calling the breadcrumb trail.
|
37 |
+
|
38 |
+
To customize the breadcrumb trail you may edit the default values for the options in the administrative interface. This is located in your administration panel under Settings > Breadcrumb NavXT.
|
|
|
|
|
|
|
39 |
|
40 |
Please visit [Breadcrumb NavXT's Documentation](http://mtekk.us/code/breadcrumb-navxt/breadcrumb-navxt-doc/ "Go to Breadcrumb NavXT's Documentation.") page for more information.
|
41 |
|
49 |
|
50 |
== Changelog ==
|
51 |
|
52 |
+
= 6.0.4 =
|
53 |
+
Release date: January, 26th 2018
|
54 |
+
|
55 |
+
* Behavior change: Added auto migration of post type hierarchy settings to `bcn_display*()` functions.
|
56 |
+
* Bug fix: Fixed issue where a PHP notice would be generated on the page for posts when the blog breadcrumb display option is set to false.
|
57 |
+
* Bug fix: Fixed issue where a PHP notice would be generated on archive pages where attachments were included in the `wp_query` results.
|
58 |
+
|
59 |
= 6.0.3 =
|
60 |
Release date: January, 1st 2018
|
61 |
|