WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 6 years ago

#4066 closed enhancement (wontfix)

Plugin / Widget Sorting Feature

Reported by: ttech5593 Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.2
Component: Administration Keywords: reporter-feedback
Focuses: Cc:

Description

This patch is one function that allows sorting of Wordpress plugins. It groups Plugins together and Widgets together in tabs under the Plugin Managment tab. If enabled by the option in the WP Options Miscellaneous section. If it is disabled no new tabs are added and no sorting happens. If enabled it will remove plugins from the Widget tab and Widgets from the plugin tab.

I did this because many plugins now come with Widgets and it can cause a mess with find a plugin or widget. This reduces the list and allows faster finding. It works even if the Automattic Widgets plugin is not installed / enabled.

Note:

I had to add the widget.php file because the Wordpress admin menu did not think plugins.php?sort_by=widgets was a different page then plugins.php. Here is the note I left at the top of widgets.php:

/*This file is here because I could not get WP to think plugins.php?sort_by=widgets was a different page from plugins.php. It is the exact same code as in plugins.php only on line 92, I call the added function wp_sort_plugins() and set it to ignore the $_GET requests since it is not needed. plugin.php the function is there so if sorting is enabled only plugins will show up. If that problem can be solved there is no need for this file. */

Attachments (1)

wp-plugins-sort-patch.dff (12.2 KB) - added by ttech5593 7 years ago.
Patch containing all modified files (Updated with if statment correction. Sorry)

Download all attachments as: .zip

Change History (5)

comment:1 follow-up: foolswisdom7 years ago

ttech5593, interesting work! Are there screen shots somewhere? It is a bit tricky to visual.

My first concern is that it is creating an experience around a temporary problem. It seems mostly likely that once the widgets or an alternative get to a level of experience, (and as ?templating? evolves) -- which it quickly is -- the proposed experience would will feel artificial.

My second concern is that most people do not install enough plugins to benefit from this slighly more involved experience.

Is there a way that this can itself be a plugin?

comment:2 in reply to: ↑ 1 ttech55937 years ago

Replying to foolswisdom:

ttech5593, interesting work! Are there screen shots somewhere? It is a bit tricky to visual.

My first concern is that it is creating an experience around a temporary problem. It seems mostly likely that once the widgets or an alternative get to a level of experience, (and as ?templating? evolves) -- which it quickly is -- the proposed experience would will feel artificial.

My second concern is that most people do not install enough plugins to benefit from this slighly more involved experience.

Is there a way that this can itself be a plugin?

I almost forgot I tested this on WP 2.2-Bleeding from the SVN at 5:00PM Central

I have some screenshots which can be found at http://mostlynothing.info/tmp/wp-plugin-sort/
They will be up soon.


This is code from a plugin I am building called Plugin Tools. There is only one problem : I have to use the get_plugins function and I cannot change the function using a plugin. At least I don't think there is a way. So I would have to either make a change like this or create a copy of the plugins.php which I did but that means any changes made to the plugins.php would have to be added and that is a lot of work for a plugin developer. It would be a version each time a new version came out. It also would require a few other changes with the menus that I am not sure are possible from plugins. Also that is why I have the option in the options menu.

ttech55937 years ago

Patch containing all modified files (Updated with if statment correction. Sorry)

comment:3 darkdragon6 years ago

  • Keywords reporter-feedback added

Does this patch/ticket still apply since Widgets were added to the core of WordPress?

comment:4 thee176 years ago

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

can reopen if need be

Note: See TracTickets for help on using tickets.