Skip to content

Commit

Permalink
v 3.9.2
Browse files Browse the repository at this point in the history
Breadcrumbs fixes :
- New hook.
- Fix last link.
  • Loading branch information
Darklg committed Oct 27, 2023
1 parent f62c19a commit afdc52e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions inc/theme/breadcrumbs.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ function wputh_get_breadcrumbs($elements_ariane = array()) {
$obj = get_post_type_object(get_post_type());
$elements_ariane['archive-post-type-' . $obj->name] = array(
'name' => $obj->label,
'link' => get_post_type_archive_link($obj->name),
'last' => 1
'link' => get_post_type_archive_link($obj->name)
);
}

Expand Down Expand Up @@ -167,6 +166,8 @@ function wputh_get_breadcrumbs($elements_ariane = array()) {
);
}

$elements_ariane = apply_filters('wputh_get_breadcrumbs__after_all', $elements_ariane);

return $elements_ariane;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wputheme",
"version": "3.9.1",
"version": "3.9.2",
"description": "WPUTheme",
"dependencies": {},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Theme Name: WP Utilities Base Theme
Theme URI: https://github.com/WordPressUtilities/WPUTheme
Update URI: https://github.com/WordPressUtilities/WPUTheme
Description: A Framework WordPress Theme
Version: 3.9.1
Version: 3.9.2
Author: Darklg
Author URI: https://darklg.me/
License: GPLv2 or later
Expand Down

0 comments on commit afdc52e

Please sign in to comment.