diff --git a/wagtail/admin/templates/wagtailadmin/shared/move_breadcrumb.html b/wagtail/admin/templates/wagtailadmin/shared/move_breadcrumb.html deleted file mode 100644 index fb05cc95d9..0000000000 --- a/wagtail/admin/templates/wagtailadmin/shared/move_breadcrumb.html +++ /dev/null @@ -1,21 +0,0 @@ -{% load i18n wagtailadmin_tags %} - - diff --git a/wagtail/admin/templatetags/wagtailadmin_tags.py b/wagtail/admin/templatetags/wagtailadmin_tags.py index d52b6d3c53..47ef956a0c 100644 --- a/wagtail/admin/templatetags/wagtailadmin_tags.py +++ b/wagtail/admin/templatetags/wagtailadmin_tags.py @@ -92,21 +92,6 @@ def explorer_breadcrumb( } -@register.inclusion_tag("wagtailadmin/shared/move_breadcrumb.html", takes_context=True) -def move_breadcrumb(context, page_to_move, viewed_page): - user = context["request"].user - cca = get_explorable_root_page(user) - if not cca: - return {"pages": Page.objects.none()} - - return { - "pages": viewed_page.get_ancestors(inclusive=True) - .descendant_of(cca, inclusive=True) - .specific(), - "page_to_move_id": page_to_move.id, - } - - @register.inclusion_tag("wagtailadmin/shared/search_other.html", takes_context=True) def search_other(context, current=None): request = context["request"]