Changeset 28208 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 04/25/2014 06:23:31 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r28131 r28208 545 545 } 546 546 547 /** 548 * Filter the HTML link to the Registration or Admin page. 549 * 550 * Users are sent to the admin page if logged-in, or the registration page 551 * if enabled and logged-out. 552 * 553 * @since 1.5.0 554 * 555 * @param string $link The HTML code for the link to the Registration or Admin page. 556 */ 557 $link = apply_filters( 'register', $link ); 558 547 559 if ( $echo ) { 548 /** 549 * Filter the HTML link to the Registration or Admin page. 550 * 551 * Users are sent to the admin page if logged-in, or the registration page 552 * if enabled and logged-out. 553 * 554 * @since 1.5.0 555 * 556 * @param string $link The HTML code for the link to the Registration or Admin page. 557 */ 558 echo apply_filters( 'register', $link ); 560 echo $link; 559 561 } else { 560 /** This filter is documented in wp-includes/general-template.php */ 561 return apply_filters( 'register', $link ); 562 return $link; 562 563 } 563 564 }
Note: See TracChangeset
for help on using the changeset viewer.