#22002 closed task (blessed) (fixed)
Favorite plugins in the plugin installer
Reported by: | Otto42 | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Upgrade/Install | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Show a new Favorites tab in the plugin installer, to allow users to put in a WordPress.org username and see the Favorites of that user, and install them.
API change has been made. Patch to use API change is attached.
Attachments (12)
Change History (49)
#4
@
12 years ago
Fixed. That's on the API side. BB_Query has this disconcerting habit of returning all possible results when there are no matches for the given data.
#7
@
12 years ago
Updated the patch with typo fixes and a little more relevant documenting for the $page param.
#8
@
12 years ago
- Milestone changed from Awaiting Review to 3.5
+1. Without this, favorite plugins are little more than bookmarks.
#10
follow-up:
↓ 15
@
12 years ago
I have included a suggested change in my Favorite Plugins plugin which utilises this new API, that is remembering the user. Though perhaps for core, we could do this with a transient?
#11
@
12 years ago
Japh: If I was going to do that, I'd probably want it to use a cookie or something instead, to keep it browser/user specific instead of storing it on the server-side. Could be weird if you have multiple admins browsing that page.
#14
@
12 years ago
No sessions. Bad mojo with sessions. You'd be downright shocked at the number of hosting setups out there which will break painfully when you even try to use sessions.
#15
in reply to:
↑ 10
@
12 years ago
- Component changed from Plugins to Upgrade/Install
- Type changed from enhancement to task (blessed)
Replying to Japh:
I have included a suggested change in my Favorite Plugins plugin which utilises this new API, that is remembering the user. Though perhaps for core, we could do this with a transient?
This is a worthy addition to this — but simply as a user option (global usermeta) rather than a site option.
#16
@
12 years ago
Getting a fatal error Cannot redeclare install_plugins_favorites()
clicking 'Add New' from a site's Plugins menu on Multisite:
Fatal error: Cannot redeclare install_plugins_favories() (previously declared in /Users/Drew/Sites/mutrunk/wp-admin/includes/plugin-install.php:183) in /Users/Drew/Sites/mutrunk/wp-admin/includes/plugin-install.php on line 212
EDIT: Applies to favorites-updates.2.diff
Oh, and by the way ... ooooh ahhhh, impressive.
#17
@
12 years ago
DrewAPicture: Use my patch, not the two broken ones after that. See if that is the problem.
#18
@
12 years ago
- Cc xoodrew@… added
Make that fatal error on 'Add New' from any plugins screen in Multisite including Network Admin with favorites-updated.2.diff
Replying to Otto42:
DrewAPicture: Use my patch, not the two broken ones after that. See if that is the problem.
favorites.diff works for me on Multisite. Spiffy.
#19
@
12 years ago
Yes, both the "updated" patches from griffinjt are broken, as he pointed out earlier. The original patch is currently the correct one, for now.
#20
@
12 years ago
Paired with this, it sure would be nice to be able to install multiple plugins at once though. There's a ticket for that somewhere around here (unless I'm missing something).
#21
@
12 years ago
Interesting idea, but separate. Anyway, this new screen uses the same listing methodology as all the other pages do (same function calls) so a patch to do multiple installs should affect this in an identical fashion.
#22
@
12 years ago
I implemented at least a preliminary version of username remembrance with usermeta in 22002.diff. Also fixed favories -> favorites typo.
@
12 years ago
Move form into the correct position to match the search form display, so it doesn't push down the results table needlessly
#23
@
12 years ago
22002.5.diff Adds help text and fixes a couple of typos.
#24
@
12 years ago
For the sake of consistency and friendliness to touch devices, 22002.6.diff changes the favourites input field type to 'search'.
#25
@
12 years ago
enctype="multipart/form-data"
appears to be copied-pasted from the upload form. This form isn't uploading data, so it can go.
#26
@
12 years ago
Patch 22002.7.diff removes the extra attribute @nacin pointed out.
#27
@
12 years ago
- Keywords commit added
22002.8.diff hides the list table before the initial search and moves to method="get" action="".
#28
@
12 years ago
- Keywords 2nd-opinion added
After a bit of back and forth with @japh seems like searches are only case-insensitive if the username is all lowercase to start with.
For instance, 'markjaquith' works, but 'MarkJaquith' doesn't. 'matt' works but 'Matt' doesn't.
But DrewAPicture and drewapicture both work (username:DrewAPicture).
Consensus seems to be this should be looked at on the API side.
#29
@
12 years ago
- Keywords 2nd-opinion removed
Yes, this is just an API thing. Otto42 and I should be able to straighten it out.
#31
@
12 years ago
For
$user = isset( $_REQUEST['user'] ) ? stripslashes( $_REQUEST['user'] ) : get_user_option( 'wporg_favorites' );
should we be explicitly checking $_GET instead of $_REQUEST? The form's a get form anyways.
#34
@
12 years ago
- Owner set to nacin
- Resolution set to fixed
- Status changed from new to closed
In [22026]:
Add favorites to plugin installer