Changeset 836 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
- Timestamp:
- 09/04/2014 07:44:44 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
r833 r836 854 854 } 855 855 856 /** 857 * Formats the output of params defined using hash notation. 858 * 859 * This is a temporary measure until the parser parses the hash notation 860 * into component elements that the theme could then handle and style 861 * properly. 862 * 863 * Also, as a stopgap this is going to begin as a barebones hack to simply 864 * keep the text looking like one big jumble. 865 * 866 * @param string $text The content for the param. 867 * @return string 868 */ 869 function param_formatting_fixup( $text ) { 870 // Don't do anything if this isn't a hash notation string. 871 if ( '{' != $text[0] ) { 872 return $text; 873 } 874 $text = trim( substr( $text, 1, -1 ) ); 875 $text = str_replace( '@type', "<br \>@type", $text ); 876 return $text; 877 } 878 856 879 }
Note: See TracChangeset
for help on using the changeset viewer.