Make WordPress Core

Opened 11 years ago

Closed 10 years ago

Last modified 10 years ago

#24509 closed enhancement (wontfix)

rename "WP_Nav_Menu_Widget" class name with "WP_Widget_Nav_Menu"

Reported by: alexvorn2's profile alexvorn2 Owned by:
Milestone: Priority: normal
Severity: minor Version: 3.5.1
Component: Widgets Keywords:
Focuses: Cc:

Description

this ticket is for renaming the Navigation Menu widget name from "WP_Nav_Menu_Widget" to "WP_Widget_Nav_Menu", as by default a widget name should start with "WP_WIdget_"...

The full list of widget class names:

WP_Widget_Pages
WP_Widget_Calendar
WP_Widget_Archives
WP_Widget_Links
WP_Widget_Meta
WP_Widget_Search
WP_Widget_Text
WP_Widget_Categories
WP_Widget_Recent_Posts
WP_Widget_Recent_Comments
WP_Widget_RSS
WP_Widget_Tag_Cloud
WP_Nav_Menu_Widget

Change History (4)

#1 @nofearinc
11 years ago

  • Cc mario@… added

#2 @SergeyBiryukov
11 years ago

WP_Nav_Menu_Widget is used in some plugins. The inconsistency doesn't seem like a strong reason for deprecating it.

#3 @ocean90
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

What Sergey says.

#4 @SergeyBiryukov
10 years ago

The link above no longer shows any results, but there are still more than 20 plugins in the repository using or mentioning WP_Nav_Menu_Widget:

advanced-menu-widget/advanced-menu-widget.php
awesome-admin-cleaner/inc/remove-core-widgets.php
binary-mlm/default-widgets.php
cmsify/inc/admin_ops.php
control-freak/controlfreak.php
custom-menu-desc-widget/custom_menu_plus_desc_widget.php
ecommerce-shopping-cart-by-inventorycom/lib/sync/ECSync.class.php
feather/lib/feather-base.php
flexible-widgets/flexible-widgets.php
many-tips-together/inc/class-admin.php
many-tips-together/inc/hooks/widgets.php
monster-widget/monster-widget.php
mu-widgets/application/models/muwidgetsnavmenu.php
point-and-stare-cms-functions/pands-functions.php
presstest/mocked/core.php
presstest/ptests/PT_Mime_Test.php
restore-default-widgets/restore-default-widgets.php
tbb-branding/class.tbb-branding.php
verve-mobile-plugin/default-widgets.php
widgets-reloaded/widgets-reloaded.php
wordpress-access-control/default-widgets.php
wp-helpers/parts/settings/appearance-widgets.php
wp-mobile-detector/default-widgets.php
wparty/wparty.php
wpreadable/plugin.php
Note: See TracTickets for help on using tickets.