Version Description
Release date: October, 31st 2020
- Behavior change: Moved to using the post type of the parent post for the type archive rather than that of the current item.
- Bug fix: Fixed error thrown when a site does not have an
administrator
role.
Download this release
Release Info
Developer | mtekk |
Plugin | Breadcrumb NavXT |
Version | 6.6.0 |
Comparing to | |
See all releases |
Code changes from version 6.5.0 to 6.6.0
- breadcrumb-navxt.php +2 -2
- class.bcn_admin.php +1 -1
- class.bcn_breadcrumb.php +1 -1
- class.bcn_breadcrumb_trail.php +7 -3
- class.bcn_network_admin.php +1 -1
- class.bcn_widget.php +1 -1
- includes/class.mtekk_adminkit.php +2 -2
- readme.txt +8 -2
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.
|
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.
|
65 |
protected $name = 'Breadcrumb NavXT';
|
66 |
protected $identifier = 'breadcrumb-navxt';
|
67 |
protected $unique_prefix = 'bcn';
|
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.6.0
|
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.6.0';
|
65 |
protected $name = 'Breadcrumb NavXT';
|
66 |
protected $identifier = 'breadcrumb-navxt';
|
67 |
protected $unique_prefix = 'bcn';
|
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.
|
47 |
protected $full_name = 'Breadcrumb NavXT Settings';
|
48 |
protected $short_name = 'Breadcrumb NavXT';
|
49 |
protected $access_level = 'bcn_manage_options';
|
43 |
*/
|
44 |
class bcn_admin extends mtekk_adminKit
|
45 |
{
|
46 |
+
const version = '6.6.0';
|
47 |
protected $full_name = 'Breadcrumb NavXT Settings';
|
48 |
protected $short_name = 'Breadcrumb NavXT';
|
49 |
protected $access_level = 'bcn_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.
|
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.6.0';
|
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.
|
25 |
//An array of breadcrumbs
|
26 |
public $breadcrumbs = array();
|
27 |
public $trail = array();
|
@@ -392,7 +392,7 @@ class bcn_breadcrumb_trail
|
|
392 |
$parent = get_post($id);
|
393 |
}
|
394 |
//Finish off with trying to find the type archive
|
395 |
-
$this->type_archive($parent, $
|
396 |
}
|
397 |
/**
|
398 |
* A Breadcrumb Trail Filling Function
|
@@ -1117,7 +1117,11 @@ class bcn_breadcrumb_trail
|
|
1117 |
{
|
1118 |
$this->type_archive($type);
|
1119 |
}
|
1120 |
-
|
|
|
|
|
|
|
|
|
1121 |
}
|
1122 |
//For 404 pages
|
1123 |
else if(is_404())
|
21 |
class bcn_breadcrumb_trail
|
22 |
{
|
23 |
//Our member variables
|
24 |
+
const version = '6.6.0';
|
25 |
//An array of breadcrumbs
|
26 |
public $breadcrumbs = array();
|
27 |
public $trail = array();
|
392 |
$parent = get_post($id);
|
393 |
}
|
394 |
//Finish off with trying to find the type archive
|
395 |
+
$this->type_archive($parent, $parent->post_type);
|
396 |
}
|
397 |
/**
|
398 |
* A Breadcrumb Trail Filling Function
|
1117 |
{
|
1118 |
$this->type_archive($type);
|
1119 |
}
|
1120 |
+
//Occasionally, we may end up with garbage for the type string, if so, skip the root
|
1121 |
+
if(isset($this->opt['apost_' . $type_str . '_root']))
|
1122 |
+
{
|
1123 |
+
$this->do_root($type_str, $this->opt['apost_' . $type_str . '_root'], is_paged(), $this->treat_as_root_page($type_str));
|
1124 |
+
}
|
1125 |
}
|
1126 |
//For 404 pages
|
1127 |
else if(is_404())
|
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.
|
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.6.0';
|
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.
|
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.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
|
includes/class.mtekk_adminkit.php
CHANGED
@@ -24,7 +24,7 @@ if(!class_exists('mtekk_adminKit_message'))
|
|
24 |
}
|
25 |
abstract class mtekk_adminKit
|
26 |
{
|
27 |
-
const version = '2.1.
|
28 |
protected $full_name;
|
29 |
protected $short_name;
|
30 |
protected $plugin_basename;
|
@@ -70,7 +70,7 @@ abstract class mtekk_adminKit
|
|
70 |
function add_cap()
|
71 |
{
|
72 |
$role = get_role('administrator');
|
73 |
-
if(!$role->has_cap($this->access_level))
|
74 |
{
|
75 |
$role->add_cap($this->access_level);
|
76 |
}
|
24 |
}
|
25 |
abstract class mtekk_adminKit
|
26 |
{
|
27 |
+
const version = '2.1.1';
|
28 |
protected $full_name;
|
29 |
protected $short_name;
|
30 |
protected $plugin_basename;
|
70 |
function add_cap()
|
71 |
{
|
72 |
$role = get_role('administrator');
|
73 |
+
if($role instanceof WP_Role && !$role->has_cap($this->access_level))
|
74 |
{
|
75 |
$role->add_cap($this->access_level);
|
76 |
}
|
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¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
4 |
Tags: breadcrumb, breadcrumbs, trail, navigation, menu, widget
|
5 |
Requires at least: 4.9
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 6.
|
8 |
Requires PHP: 5.5
|
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.5.0 =
|
53 |
Release date: June, 12th 2020
|
54 |
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=FD5XEU783BR8U&lc=US&item_name=Breadcrumb%20NavXT%20Donation¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
4 |
Tags: breadcrumb, breadcrumbs, trail, navigation, menu, widget
|
5 |
Requires at least: 4.9
|
6 |
+
Tested up to: 5.7
|
7 |
+
Stable tag: 6.6.0
|
8 |
Requires PHP: 5.5
|
9 |
License: GPLv2 or later
|
10 |
Adds breadcrumb navigation showing the visitor's path to their current location.
|
49 |
|
50 |
== Changelog ==
|
51 |
|
52 |
+
= 6.6.0 =
|
53 |
+
Release date: October, 31st 2020
|
54 |
+
|
55 |
+
* Behavior change: Moved to using the post type of the parent post for the type archive rather than that of the current item.
|
56 |
+
* Bug fix: Fixed error thrown when a site does not have an `administrator` role.
|
57 |
+
|
58 |
= 6.5.0 =
|
59 |
Release date: June, 12th 2020
|
60 |
|