Changeset 3233
- Timestamp:
- 05/24/2016 08:55:22 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/formatting.php
r3050 r3233 174 174 175 175 // Link to hook: {@see 'pre_get_search_form'} 176 elseif ( 1 === preg_match( '/^( ‘)\w+(’)$/', $link, $hook ) ) {177 if ( ! empty( $hook[ 0] ) ) {176 elseif ( 1 === preg_match( '/^(?:‘)([\$\w]+)(?:’)$/', $link, $hook ) ) { 177 if ( ! empty( $hook[1] ) ) { 178 178 $link = '<a href="' . 179 179 get_post_type_archive_link( 'wp-parser-hook' ) . 180 s tr_replace( array( '‘', '’' ), '', $link ).180 sanitize_key( $hook[1] ) . '/' . 181 181 '">' . esc_html( $link ) . '</a>'; 182 182 }
Note: See TracChangeset
for help on using the changeset viewer.