Changeset 14738
- Timestamp:
- 03/20/2026 03:20:18 PM (9 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-abilities/plugins/plugin-directory/tools/class-get-plugin-status.php
r14729 r14738 294 294 $body = self::html_to_text( $body ); 295 295 $body = self::strip_boilerplate( $body ); 296 $body = self::wrap_feedback( $body ); 296 297 } 297 298 … … 322 323 $body = self::html_to_text( $body ); 323 324 $body = self::strip_boilerplate( $body ); 325 $body = self::wrap_feedback( $body ); 324 326 } 325 327 … … 409 411 return $threads; 410 412 } 413 414 /** 415 * Wrap feedback text in delimiters to separate content from instructions. 416 * 417 * @param string $body The feedback body. 418 * @return string 419 */ 420 private static function wrap_feedback( string $body ): string { 421 $body = str_replace( array( '<feedback>', '</feedback>' ), '', $body ); 422 423 return "<feedback>\n{$body}\n</feedback>"; 424 } 411 425 }
Note: See TracChangeset
for help on using the changeset viewer.