Opened 3 years ago
Closed 3 years ago
#14709 closed enhancement (fixed)
WP_User_Query constructor improvements
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | Users | Version: | 3.0.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
- We should be able to extend the class and invoke the parent constructor agnostic of the particular class name of the parent, e.g. return parent::__construct()
- We should be able to instantiate the class without querying immediately (currently the constructor has a mandatory query argument).
Attachments (1)
Change History (4)
You're right; that's just force of habit. Returning a constructor doesn't do anything.
Note: See
TracTickets for help on using
tickets.

Good idea.
Wouldn't the following be just as good?