Changeset 8525
- Timestamp:
- 03/25/2019 10:24:51 PM (6 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/formatting.php
r8466 r8525 170 170 $url = ''; 171 171 172 // Exceptions for externally-linked elements. 173 $exceptions = [ 174 'error_log()' => 'https://secure.php.net/manual/en/function.error-log.php', 175 ]; 176 177 // Link exceptions that should actually point to external resources. 178 if ( ! empty( $exceptions[ $link ] ) ) { 179 $url = $exceptions[ $link ]; 180 } 181 172 182 // Link to class variable: {@see WP_Rewrite::$index} 173 if ( false !== strpos( $link, '::$' ) ) {183 elseif ( false !== strpos( $link, '::$' ) ) { 174 184 // Nothing to link to currently. 175 185 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
r8487 r8525 1064 1064 } 1065 1065 1066 // Exceptions for externally-linked elements.1067 $exceptions = [1068 'error_log()' => 'https://secure.php.net/manual/en/function.error-log.php',1069 ];1070 if ( ! empty( $exceptions[ $refers ] ) ) {1071 $link_to = \DevHub_Formatting::generate_link( $exceptions[ $refers ], $refers );1072 }1073 // Else internally-link the element.1074 else {1075 $link_to = \DevHub_Formatting::link_internal_element( $refers );1076 }1077 1078 1066 /* translators: %s: Linked internal element name */ 1079 $deprecation_info = ' ' . sprintf( __( 'Use %s instead.', 'wporg' ), $link_to);1067 $deprecation_info = ' ' . sprintf( __( 'Use %s instead.', 'wporg' ), \DevHub_Formatting::link_internal_element( $refers ) ); 1080 1068 } 1081 1069 }
Note: See TracChangeset
for help on using the changeset viewer.