Making WordPress.org

Changeset 11565


Ignore:
Timestamp:
02/17/2022 12:08:43 AM (2 years ago)
Author:
dd32
Message:

Trac: Revert [11548] to see if it's caused #6112.

See #6112, #4950.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/trac.wordpress.org/templates/site.html

    r11548 r11565  
    314314    <textarea class="${select('@class')} wp-exclude-emoji" id="${select('@id')}" name="${select('@name')}" rows="${select('@rows')}" cols="${select('@cols')}">${select('*|comment()|text()')}</textarea>
    315315</py:match>
    316 
    317 <!--! Mark description/comment links as nofollow user-generated-content. -->
    318 <div py:match="div[contains(@class,'searchable')]" py:attrs="select('@*')">
    319     <?python
    320     from genshi.core import TEXT, Markup
    321     def nofollow_ugc(stream):
    322         for kind, data, pos in stream:
    323             if kind is TEXT:
    324                 data = data.replace( 'class="ext-link"', 'class="ext-link" rel="ugc nofollow"' )
    325                 data = Markup( data )
    326             yield kind, data, pos
    327     ?>
    328     ${nofollow_ugc(select('*|comment()|text()'))}
    329 </div>
    330316
    331317<body py:match="body" id="wordpress-org" class="${project_slug} trac wporg-make make-${project_slug}" py:attrs="select('@*')">
Note: See TracChangeset for help on using the changeset viewer.