Changeset 56662 for trunk/src/wp-includes/functions.php
- Timestamp:
- 09/22/2023 06:12:12 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r56654 r56662 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.8322 * 8323 * @param string $before Markup to output before the annotation. Default `<p class="description">`.8324 * @param string $after Markup to output after the annotation. Default `</p>`.8325 * @param bool $ echo Markup should echo if true. Default `true`.8321 * @since 6.4.0 Added the `$display` parameter. 8322 * 8323 * @param string $before Markup to output before the annotation. Default `<p class="description">`. 8324 * @param string $after Markup to output after the annotation. Default `</p>`. 8325 * @param bool $display Whether to echo or return the markup. Default `true` for echo. 8326 8326 * 8327 8327 * @return string|void 8328 8328 */ 8329 function wp_update_php_annotation( $before = '<p class="description">', $after = '</p>', $ echo= true ) {8329 function wp_update_php_annotation( $before = '<p class="description">', $after = '</p>', $display = true ) { 8330 8330 $annotation = wp_get_update_php_annotation(); 8331 8331 8332 8332 if ( $annotation ) { 8333 if ( $ echo) {8333 if ( $display ) { 8334 8334 echo $before . $annotation . $after; 8335 8335 } else {
Note: See TracChangeset
for help on using the changeset viewer.