Making WordPress.org

Changeset 11775


Ignore:
Timestamp:
04/20/2022 12:57:58 AM (3 years ago)
Author:
dd32
Message:

Trac: Rename needs-codex to needs-user-docs.

See #6283.

Location:
sites/trunk
Files:
2 edited

Legend:

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

    r11705 r11775  
    55
    66<?python
    7     scripts_version = '174'
     7    scripts_version = '155'
    88    project_slug = req.environ['HTTP_HOST'].split(':')[0].split('.')[0]
    99    wporg_endpoint = 'https://make.wordpress.org/' + project_slug + '/'
     
    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,'description') or contains(@class,'comment')]" 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 and isinstance( data, Markup ) and ( 'ext-link' in data ):
    324                 data = Markup( data.replace( '<' + 'a class="ext-link"', '<' + 'a class="ext-link" rel="ugc nofollow"' ) )
    325             yield kind, data, pos
    326     ?>
    327     ${nofollow_ugc(select('*|comment()|text()'))}
    328 </div>
    329316
    330317<body py:match="body" id="wordpress-org" class="${project_slug} trac wporg-make make-${project_slug}" py:attrs="select('@*')">
  • sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js

    r11705 r11775  
    2525        'needs-copy-review' : 'Input is needed from a copywriter with regards to the suggested verbiage changes.',
    2626        'needs-docs' : 'Inline documentation is needed.',
    27         'needs-codex' : 'The Codex needs to be updated or expanded.',
     27        'needs-user-docs' : 'The User Documentation needs to be updated or expanded.',
    2828        'has-screenshots' : 'Visual changes are documented with screenshots.',
    2929        'needs-screenshots' : 'Screenshots are needed as a visual change log.',
Note: See TracChangeset for help on using the changeset viewer.