#7352 closed enhancement (fixed)
Improvement for wp_loginout and wp_register
| Reported by: | Txanny | Owned by: | Nicholas91 |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Template | Version: | 2.6 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
I'm developing some themes and plugins that use this functions: wp_register() and wp_loginout(). Both functions display the output directly to the page, which makes a bit more difficult composing some templates and plugins.
I think could be interesting have the possibility to pass a parameter telling the functions if them should display or return the value. And also, both functions to have the same $before and $after parameters.
The patch implements this parameters. The default values for them makes the function to work exactly as it works now, but add some flexibility to template and plugin coders.
Attachments (1)
Change History (8)
#3
@
17 years ago
- Keywords needs-patch added; wp_loginout wp_register has-patch removed
- Milestone 2.8 → Future Release
patch needs a refresh
#4
@
16 years ago
- Keywords needs-patch removed
- Resolution → fixed
- Status accepted → closed
Fixed in [13048]
#5
@
16 years ago
Keep in mind that there are output buffer functions in PHP and you can use echo to deal for anything in case that's not provided by the original function:
ob_start(); function_that_echos(); $ouput = $ob_get_clean();
and
echo function_that_returns();
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch to enhance this functions by adding some parameters