Changeset 56570 for trunk/src/wp-includes/functions.php
- Timestamp:
- 09/14/2023 12:52:45 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r56559 r56570 8319 8319 * @since 5.1.0 8320 8320 * @since 5.2.0 Added the `$before` and `$after` parameters. 8321 * @since 6.4.0 Added the `$echo` parameter. 8321 8322 * 8322 8323 * @param string $before Markup to output before the annotation. Default `<p class="description">`. 8323 8324 * @param string $after Markup to output after the annotation. Default `</p>`. 8324 */ 8325 function wp_update_php_annotation( $before = '<p class="description">', $after = '</p>' ) { 8325 * @param bool $echo Markup should echo if true. Default `true`. 8326 * 8327 * @return string|void 8328 */ 8329 function wp_update_php_annotation( $before = '<p class="description">', $after = '</p>', $echo = true ) { 8326 8330 $annotation = wp_get_update_php_annotation(); 8327 8331 8328 8332 if ( $annotation ) { 8329 echo $before . $annotation . $after; 8333 if ( $echo ) { 8334 echo $before . $annotation . $after; 8335 } else { 8336 return $before . $annotation . $after; 8337 } 8330 8338 } 8331 8339 }
Note: See TracChangeset
for help on using the changeset viewer.