Changeset 5578 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/formatting.php
- Timestamp:
- 06/15/2017 10:48:35 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/formatting.php
r5577 r5578 177 177 178 178 // Link to hook: {@see 'pre_get_search_form'} 179 elseif ( 1 === preg_match( '/^(?:\'|(?:‘))([\$\w ]+)(?:\'|(?:’))$/', $link, $hook ) ) {179 elseif ( 1 === preg_match( '/^(?:\'|(?:‘))([\$\w-&;]+)(?:\'|(?:’))$/', $link, $hook ) ) { 180 180 if ( ! empty( $hook[1] ) ) { 181 181 $link = '<a href="' . 182 182 get_post_type_archive_link( 'wp-parser-hook' ) . 183 sanitize_key( $hook[1]) . '/' .183 sanitize_key( html_entity_decode( $hook[1] ) ) . '/' . 184 184 '">' . esc_html( $link ) . '</a>'; 185 185 }
Note: See TracChangeset
for help on using the changeset viewer.