WordPress.org

Making WordPress.org

Changeset 5606


Ignore:
Timestamp:
06/29/17 22:19:13 (3 months ago)
Author:
coffee2code
Message:

developer.wordpress.org: Revert functional changes to link_internal_element() from [5598] as the need was handled in [5577].

See #1766.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/formatting.php

    r5598 r5606  
    160160     * 
    161161     * @param string $link Element string. 
    162      * @param bool   $tag  Optional. Whether the element was explicitly provided in a tag 
    163      *                     description, such as `@see 'hook_name'` vs in random context. 
    164      *                     Default false. 
    165162     * @return string HTML link markup if a valid element was found. 
    166163     */ 
    167     public static function link_internal_element( $link, $tag = false ) { 
     164    public static function link_internal_element( $link ) { 
    168165        // Link to class variable: {@see WP_Rewrite::$index} 
    169166        if ( false !== strpos( $link, '::$' ) ) { 
     
    179176        } 
    180177 
    181         // Link to hook: {@see 'pre_get_search_form'} (or 'pre_get_search_form' if $tag is true) 
    182         elseif ( 
    183             1 === preg_match( '/^(?:\'|(?:‘))([\$\w-&;]+)(?:\'|(?:’))$/', $link, $hook ) 
    184             || ( true === $tag && 1 === preg_match( '/^(?:\')([\$\w-&;]+)(?:\')$/', $link, $hook ) ) 
    185         ) { 
     178        // Link to hook: {@see 'pre_get_search_form'} 
     179        elseif ( 1 === preg_match( '/^(?:\'|(?:‘))([\$\w-&;]+)(?:\'|(?:’))$/', $link, $hook ) ) { 
    186180            if ( ! empty( $hook[1] ) ) { 
    187181                $link = '<a href="' . 
Note: See TracChangeset for help on using the changeset viewer.