Making WordPress.org

Changeset 8159


Ignore:
Timestamp:
01/29/2019 12:08:18 PM (8 years ago)
Author:
ocean90
Message:

WordPress.org Main Theme: Don't escape static URLs.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-accessibility.php

    r7456 r8159  
    5656                                                        /* translators: 1: Link to the Theme Directory Accessible Themes; 2: Link to Accessibility Handbook requirements. */
    5757                                                        wp_kses_post( __( 'While the WordPress project cannot guarantee that all Themes are compliant, the <a href="%1$s">accessibility-ready themes</a> have been checked by the Theme Review Team to ensure that these themes pass their <a href="%2$s">basic accessibility requirements</a>.', 'wporg' ) ),
    58                                                         esc_url( site_url( '/themes/tags/accessibility-ready/' ) ),
     58                                                        esc_url( home_url( '/themes/tags/accessibility-ready/' ) ),
    5959                                                        'https://make.wordpress.org/themes/handbook/review/accessibility/required/'
    6060                                                );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-etiquette.php

    r7350 r8159  
    4141                                                <?php
    4242                                                /* translators: Link to blog post */
    43                                                 printf( wp_kses_post( __( 'In the WordPress open source project, we realize that our biggest asset is the community that we foster. The project, as a whole, follows these basic philosophical principles from <a href="%s">The Cathedral and The Bazaar</a>.', 'wporg' ) ), esc_url( 'http://www.catb.org/esr/writings/cathedral-bazaar/cathedral-bazaar/index.html' ) );
     43                                                printf( wp_kses_post( __( 'In the WordPress open source project, we realize that our biggest asset is the community that we foster. The project, as a whole, follows these basic philosophical principles from <a href="%s">The Cathedral and The Bazaar</a>.', 'wporg' ) ), 'http://www.catb.org/esr/writings/cathedral-bazaar/cathedral-bazaar/index.html' );
    4444                                                ?>
    4545                                        </p>
    … …  
    5252                                                        <?php
    5353                                                        /* translators: Link to make.wordpress.org */
    54                                                         printf( wp_kses_post( __( 'Any member of the community can donate their time and contribute to the project in any form including design, code, documentation, community building, etc. For more information, go to <a href="%s">make.wordpress.org</a>.', 'wporg' ) ), esc_url( 'https://make.wordpress.org/' ) );
     54                                                        printf( wp_kses_post( __( 'Any member of the community can donate their time and contribute to the project in any form including design, code, documentation, community building, etc. For more information, go to <a href="%s">make.wordpress.org</a>.', 'wporg' ) ), 'https://make.wordpress.org/' );
    5555                                                        ?>
    5656                                                </li>
    … …  
    6363                                                <?php
    6464                                                /* translators: 1: Link to community team slack channel; 2: Link to tag archive on make/community */
    65                                                 printf( wp_kses_post( __( 'Meetings are conducted in the <a href="%1$s">#community-team Slack channel</a>, and minutes published on the <a href="%2$s">Make Community blog</a>.', 'wporg' ) ), esc_url( 'https://wordpress.slack.com/messages/community-team' ), esc_url( 'https://make.wordpress.org/community/tag/ccoc/' ) );
     65                                                printf( wp_kses_post( __( 'Meetings are conducted in the <a href="%1$s">#community-team Slack channel</a>, and minutes published on the <a href="%2$s">Make Community blog</a>.', 'wporg' ) ), 'https://wordpress.slack.com/messages/community-team', 'https://make.wordpress.org/community/tag/ccoc/' );
    6666                                                ?>
    6767                                        </p>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-features.php

    r8131 r8159  
    149149                                                                /* translators: Link to Polyglots teams */
    150150                                                                wp_kses_post( __( 'WordPress is available in more than 70 languages. If you or the person you&#8217;re building the website for would prefer to use WordPress in a language other than English, <a href="%s">that&#8217;s easy to do</a>.', 'wporg' ) ),
    151                                                                 esc_url( 'https://make.wordpress.org/polyglots/teams/' )
     151                                                                'https://make.wordpress.org/polyglots/teams/'
    152152                                                        );
    153153                                                        ?>
    … …  
    183183                                                                wp_kses_post( __( 'As the most popular open source CMS on the web, WordPress has a vibrant and supportive community. Ask a question on the <a href="%1$s">support forums</a> and get help from a volunteer, attend a <a href="%2$s">WordCamp</a> or Meetup to learn more about WordPress, read blogs posts and tutorials about WordPress. Community is at the heart of WordPress, making it what it is today.', 'wporg' ) ),
    184184                                                                esc_url( __( 'https://wordpress.org/support/forums/', 'wporg' ) ),
    185                                                                 esc_url( 'https://central.wordcamp.org/' )
     185                                                                'https://central.wordcamp.org/'
    186186                                                        );
    187187                                                        ?>
    … …  
    192192                                                                /* translators: %s: https://make.wordpress.org/ */
    193193                                                                wp_kses_post( __( 'You can be WordPress too! Help to build WordPress, answer questions on the support forums, write documentation, translate WordPress into your language, speak at a WordCamp, write about WordPress on your blog. Whatever your skill, <a href="%s">we&#8217;d love to have you</a>!', 'wporg' ) ),
    194                                                                 esc_url( 'https://make.wordpress.org/' )
     194                                                                'https://make.wordpress.org/'
    195195                                                        );
    196196                                                        ?>
    … …  
    207207                                                                /* translators: 1: Link to Developer Hub; 2: Link to Plugin Directory */
    208208                                                                wp_kses_post( __( 'The <a href="%1$s">WordPress APIs</a> make it possible for you to create plugins to extend WordPress. WordPress&#8217;s extensibility lies in the thousands of hooks at your disposal. Once you&#8217;ve created your plugin, we&#8217;ve even got a <a href="%2$s">plugin repository</a> for you to host it on.', 'wporg' ) ),
    209                                                                 esc_url( 'https://developer.wordpress.org/' ),
     209                                                                'https://developer.wordpress.org/',
    210210                                                                esc_url( home_url( '/plugins/' ) )
    211211                                                        );
    … …  
    217217                                                                /* translators: 1: Link to Theme Developer Handbook; 2: Link to Theme Directory */
    218218                                                                wp_kses_post( __( 'Create WordPress themes for clients, other WordPress users, or yourself. WordPress provides the extensibility to <a href="%1$s">create themes</a> as simple or as complex as you wish. If you want to give your theme away for free you can give it to users in the <a href="%2$s">theme repository</a>.', 'wporg' ) ),
    219                                                                 esc_url( 'https://developer.wordpress.org/themes/' ),
     219                                                                'https://developer.wordpress.org/themes/',
    220220                                                                esc_url( home_url( '/themes/' ) )
    221221                                                        );
    … …  
    227227                                                                /* translators: %s: Link to REST API Handbook */
    228228                                                                wp_kses_post( __( 'If you want to build an application, WordPress can help with that too. WordPress provides a lot of the features under the hood that your app will need: translations, user management, HTTP requests, databases, URL routing and much, much more. You can also use our <a href="%s">REST API</a> to interact with it.', 'wporg' ) ),
    229                                                                 esc_url( 'https://developer.wordpress.org/rest-api/' )
     229                                                                'https://developer.wordpress.org/rest-api/'
    230230                                                        );
    231231                                                        ?>
    … …  
    236236                                                                /* translators: 1: Link to Plugin Handbook page about custom post types; 2: Link to Plugin Handbook page about custom taxonomies; 3: Link to Plugin Handbook page about metadata */
    237237                                                                wp_kses_post( __( 'WordPress comes with default content types, but for more flexibility you can add a few lines of code to create your own <a href="%1$s">custom post types</a>, <a href="%2$s">taxonomies</a>, and <a href="%3$s">metadata</a>. Take WordPress in whatever direction you wish.', 'wporg' ) ),
    238                                                                 esc_url( 'https://developer.wordpress.org/plugins/post-types/' ),
    239                                                                 esc_url( 'https://developer.wordpress.org/plugins/taxonomies/' ),
    240                                                                 esc_url( 'https://developer.wordpress.org/plugins/metadata/' )
     238                                                                'https://developer.wordpress.org/plugins/post-types/',
     239                                                                'https://developer.wordpress.org/plugins/taxonomies/',
     240                                                                'https://developer.wordpress.org/plugins/metadata/'
    241241                                                        );
    242242                                                        ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-logos.php

    r7458 r8159  
    4242                                                <?php
    4343                                                /* translators: Link to Trademark Policy of WordPress Foundation */
    44                                                 printf( wp_kses_post( __( 'When you need the official WordPress logo for a web site or publication, please use one of the following. Please only use logos in accordance with the <a href="%s">WordPress trademark&nbsp;policy</a>.', 'wporg' ) ), esc_url( 'http://wordpressfoundation.org/trademark-policy/' ) );
     44                                                printf( wp_kses_post( __( 'When you need the official WordPress logo for a web site or publication, please use one of the following. Please only use logos in accordance with the <a href="%s">WordPress trademark&nbsp;policy</a>.', 'wporg' ) ), 'http://wordpressfoundation.org/trademark-policy/' );
    4545                                                ?>
    4646                                        </p>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy.php

    r7350 r8159  
    8080                                                                /* translators: Login URL */
    8181                                                                wp_kses_post( __( 'Visit <a href="%s">https://login.wordpress.org</a>, and enter your username and password.', 'wporg' ) ),
    82                                                                 esc_url( 'https://login.wordpress.org/' )
     82                                                                'https://login.wordpress.org/'
    8383                                                        );
    8484                                                        ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-requirements.php

    r8158 r8159  
    4646                                                        <?php
    4747                                                        /* translators: 1: URL to PHP; 2: PHP Version */
    48                                                         printf( wp_kses_post( __( '<a href="%1$s">PHP</a> version %2$s or greater.', 'wporg' ) ), esc_url( 'http://www.php.net/' ), RECOMMENDED_PHP );
     48                                                        printf( wp_kses_post( __( '<a href="%1$s">PHP</a> version %2$s or greater.', 'wporg' ) ), 'https://secure.php.net/', RECOMMENDED_PHP );
    4949                                                        ?>
    5050                                                </li>
    … …  
    5252                                                        <?php
    5353                                                        /* translators: 1: URL to MySQL; 2: MySQL Version; 3: URL to MariaDB; 4: MariaDB Version */
    54                                                         printf( wp_kses_post( __( '<a href="%1$s">MySQL</a> version %2$s or greater <em>OR</em> <a href="%3$s">MariaDB</a> version %4$s or greater.', 'wporg' ) ), esc_url( 'https://www.mysql.com/' ), '5.6', esc_url( 'https://mariadb.org/' ), '10.0' );
     54                                                        printf( wp_kses_post( __( '<a href="%1$s">MySQL</a> version %2$s or greater <em>OR</em> <a href="%3$s">MariaDB</a> version %4$s or greater.', 'wporg' ) ), 'https://www.mysql.com/', '5.6', 'https://mariadb.org/', '10.0' );
    5555                                                        ?>
    5656                                                </li>
    … …  
    5858                                                        <?php
    5959                                                        /* translators: URL to news post */
    60                                                         printf( wp_kses_post( __( '<a href="%s">HTTPS</a> support', 'wporg' ) ), esc_url( 'https://wordpress.org/news/2016/12/moving-toward-ssl/' ) );
     60                                                        printf( wp_kses_post( __( '<a href="%s">HTTPS</a> support', 'wporg' ) ), 'https://wordpress.org/news/2016/12/moving-toward-ssl/' );
    6161                                                        ?>
    6262                                                </li>
    … …  
    6666                                                <?php
    6767                                                /* translators: 1: URL to Apache; 2: URL to Nginx; 3: URL to hosting page */
    68                                                 printf( wp_kses_post( __( 'That&#8217;s really it. We recommend <a href="%1$s">Apache</a> or <a href="%2$s">Nginx</a> as the most robust and featureful server for running WordPress, but any server that supports PHP and MySQL will do. That said, we can&#8217;t test every possible environment and <a href="%3$s">each of the hosts on our hosting page</a> supports the above and more with no problems.', 'wporg' ) ), esc_url( 'https://httpd.apache.org/' ), esc_url( 'https://nginx.org/' ), esc_url( 'https://wordpress.org/hosting/' ) );
     68                                                printf( wp_kses_post( __( 'That&#8217;s really it. We recommend <a href="%1$s">Apache</a> or <a href="%2$s">Nginx</a> as the most robust and featureful server for running WordPress, but any server that supports PHP and MySQL will do. That said, we can&#8217;t test every possible environment and <a href="%3$s">each of the hosts on our hosting page</a> supports the above and more with no problems.', 'wporg' ) ), 'https://httpd.apache.org/', 'https://nginx.org/', 'https://wordpress.org/hosting/' );
    6969                                                ?>
    7070                                        </p>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-roadmap.php

    r8120 r8159  
    5555                                                        /* translators: %s: Link to make/core blog post */
    5656                                                        wp_kses_post( __( 'For 2019 the project also has the following 9 priorities, as outlined in <a href="%s">this post</a> by project lead Matt Mullenweg:', 'wporg' ) ),
    57                                                         esc_url( 'https://make.wordpress.org/core/2018/12/08/9-priorities-for-2019/' )
     57                                                        'https://make.wordpress.org/core/2018/12/08/9-priorities-for-2019/'
    5858                                                );
    5959                                                ?>
    … …  
    8282                                                                /* translators: %s: Link to open tickets in Core Trac */
    8383                                                                wp_kses_post( __( 'Form a Triage team to tackle our <a href="%s">6,500 open issues on Trac</a>.', 'wporg' ) ),
    84                                                                 esc_url( 'https://core.trac.wordpress.org/query?status=!closed' )
     84                                                                'https://core.trac.wordpress.org/query?status=!closed'
    8585                                                        );
    8686                                                        ?>
    … …  
    9393                                                        /* translators: %s: https://make.wordpress.org/ */
    9494                                                        wp_kses_post( __( 'Want to get involved? Head on over to <a href="%s">Make WordPress</a>! We can always use more people to help translate, design, document, develop and market WordPress.', 'wporg' ) ),
    95                                                         esc_url( 'https://make.wordpress.org/' )
     95                                                        'https://make.wordpress.org/'
    9696                                                );
    9797                                                ?>
    … …  
    105105                                                        /* translators: %s: Link to Core Trac */
    106106                                                        wp_kses_post( __( 'Here are the current planned releases, and links to their respective milestones in our <a href="%s">issue tracker</a>. Any projected dates are for discussion and planning purposes, and will be firmed up as we get closer to release.', 'wporg' ) ),
    107                                                         esc_url( 'https://core.trac.wordpress.org/' )
     107                                                        'https://core.trac.wordpress.org/'
    108108                                                );
    109109                                                ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-swag.php

    r7350 r8159  
    4444                                                <?php
    4545                                                /* translators: Link to swag store */
    46                                                 printf( wp_kses_post( __( 'Whether you&#8217;re a seasoned WordPress fanatic or just getting warmed up, wear your WordPress love with pride. The official <a href="%s">WordPress Swag Store</a> sells shirts and hoodies in a variety of designs and colors, printed on stock from socially responsible companies.', 'wporg' ) ), esc_url( 'https://mercantile.wordpress.org' ) );
     46                                                printf( wp_kses_post( __( 'Whether you&#8217;re a seasoned WordPress fanatic or just getting warmed up, wear your WordPress love with pride. The official <a href="%s">WordPress Swag Store</a> sells shirts and hoodies in a variety of designs and colors, printed on stock from socially responsible companies.', 'wporg' ) ), 'https://mercantile.wordpress.org' );
    4747                                                ?>
    4848                                        </p>
    … …  
    5252                                                <?php
    5353                                                /* translators: Link to swag store */
    54                                                 printf( wp_kses_post( __( 'So show the love and spread the word &mdash; get your <a href="%s">WordPress swag</a> today.', 'wporg' ) ), esc_url( 'https://mercantile.wordpress.org' ) );
     54                                                printf( wp_kses_post( __( 'So show the love and spread the word &mdash; get your <a href="%s">WordPress swag</a> today.', 'wporg' ) ), 'https://mercantile.wordpress.org' );
    5555                                                ?>
    5656                                        </p>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-download-source.php

    r7375 r8159  
    4242                                                        /* translators: URLs to documentation */
    4343                                                        wp_kses_post( __( 'If you&#8217;d like to browse the WordPress source and inline documentation, we have a <a href="%1$s">convenient developer reference</a> and a <a href="%2$s">code browser</a>. We also have guides for <a href="%3$s">contributing with Subversion</a> and <a href="%4$s">contributing with Git</a>.', 'wporg' ) ),
    44                                                         esc_url( 'https://developer.wordpress.org/reference/' ),
    45                                                         esc_url( 'https://core.trac.wordpress.org/browser/' ),
    46                                                         esc_url( 'https://make.wordpress.org/core/handbook/contribute/svn/' ),
    47                                                         esc_url( 'https://make.wordpress.org/core/handbook/contribute/git/' )
     44                                                        'https://developer.wordpress.org/reference/',
     45                                                        'https://core.trac.wordpress.org/browser/',
     46                                                        'https://make.wordpress.org/core/handbook/contribute/svn/',
     47                                                        'https://make.wordpress.org/core/handbook/contribute/git/'
    4848                                                );
    4949                                                ?>
    … …  
    5656                                                        wp_kses_post( __( 'The built WordPress source, <a href="%1$s">licensed</a> under the GNU General Public License version 2 (or later), can be <a href="%2$s">browsed online</a> or checked out locally with Subversion or Git:', 'wporg' ) ),
    5757                                                        esc_url( home_url( '/about/license/' ) ),
    58                                                         esc_url( 'https://build.trac.wordpress.org/browser' )
     58                                                        'https://build.trac.wordpress.org/browser'
    5959                                                );
    6060                                                ?>
    … …  
    8787                                                        /* translators: URLs to documentation */
    8888                                                        wp_kses_post( __( 'WordPress minifies core JavaScript files using UglifyJS and CSS using clean-css, all via the <a href="%1$s">Grunt</a> JavaScript-based task runner. The development source that includes un-minified versions of these files, along with the build scripts, can be <a href="%2$s">browsed online</a> or checked out locally with Subversion or Git:', 'wporg' ) ),
    89                                                         esc_url( 'http://gruntjs.com/' ),
    90                                                         esc_url( 'https://core.trac.wordpress.org/browser' )
     89                                                        'https://gruntjs.com/',
     90                                                        'https://core.trac.wordpress.org/browser'
    9191                                                );
    9292                                                ?>
    … …  
    119119                                                        /* translators: URLs to documentation */
    120120                                                        wp_kses_post( __( 'The source code for any program binaries or minified external scripts that are included with WordPress can be freely obtained from our <a href="%s">sources repository</a>.', 'wporg' ) ),
    121                                                         esc_url( 'https://code.trac.wordpress.org/browser/wordpress-sources' )
     121                                                        'https://code.trac.wordpress.org/browser/wordpress-sources'
    122122                                                );
    123123                                                ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-download.php

    r8157 r8159  
    117117                                                                /* translators: URL to installation guide */
    118118                                                                wp_kses_post( __( 'With our famous 5-minute installation, setting up WordPress for the first time is simple. We’ve created a <a href="%1$s">handy guide</a> to see you through the installation process.', 'wporg' ) ),
    119                                                                 esc_url( 'https://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Installation' )
     119                                                                'https://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Installation'
    120120                                                        );
    121121                                                        ?>
    … …  
    130130                                                                /* translators: URL to WordPress mailing list */
    131131                                                                wp_kses_post( __( 'Want to get notified about WordPress releases? Join the <a href="%1$s">WordPress Announcements mailing list</a> and we will send a friendly message whenever there is a new stable release.', 'wporg' ) ),
    132                                                                 esc_url( 'https://wordpress.org/list/' )
     132                                                                'https://wordpress.org/list/'
    133133                                                        );
    134134                                                        ?>
    … …  
    144144                                                                wp_kses_post( __( 'We recommend servers running version %1$s or greater of <a href="%2$s">PHP</a> and <a href="%3$s">MySQL</a> version %4$s <em>OR</em> <a href="%5$s">MariaDB</a> version %6$s or greater.', 'wporg' ) ),
    145145                                                                RECOMMENDED_PHP,
    146                                                                 esc_url( 'https://www.php.net/' ),
    147                                                                 esc_url( 'https://www.mysql.com/' ),
     146                                                                'https://secure.php.net/',
     147                                                                'https://www.mysql.com/',
    148148                                                                '5.6',
    149                                                                 esc_url( 'https://mariadb.org/' ),
     149                                                                'https://mariadb.org/',
    150150                                                                '10.0'
    151151                                                        );
    … …  
    156156                                                                /* translators: 1: URL to Apache website; 2: URL to Nginx website */
    157157                                                                wp_kses_post( __( 'We also recommend either <a href="%1$s">Apache</a> or <a href="%2$s">Nginx</a> as the most robust options for running WordPress, but neither is required.', 'wporg' ) ),
    158                                                                 esc_url( 'https://httpd.apache.org/' ),
    159                                                                 esc_url( 'https://nginx.org/' )
     158                                                                'https://httpd.apache.org/',
     159                                                                'https://nginx.org/'
    160160                                                        );
    161161                                                        ?>
Note: See TracChangeset for help on using the changeset viewer.