Making WordPress.org


Ignore:
Timestamp:
12/18/2017 05:42:35 PM (7 years ago)
Author:
obenland
Message:

Plugins: Conform to WPCS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/page-developers.php

    r6231 r6284  
    1212    <main id="main" class="site-main" role="main">
    1313
    14         <?php while ( have_posts() ) : the_post(); ?>
     14        <?php
     15        while ( have_posts() ) :
     16            the_post();
     17        ?>
    1518
    1619        <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    1720            <header class="entry-header">
    18                 <h1 class="entry-title"><?php _e( 'Developer Information', 'wporg-plugins' ); ?></h1>
     21                <h1 class="entry-title"><?php esc_html_e( 'Developer Information', 'wporg-plugins' ); ?></h1>
    1922            </header><!-- .entry-header -->
    2023
    2124            <div class="entry-content">
     25                <p>
     26                    <?php
     27                    /* translators: URL to plugin submission form. */
     28                    printf( wp_kses_post( __( 'You&#8217;ve got a cool new plugin and are hoping to give it some exposure. You&#8217;re in the right place. Just <a href="%s">ask us to host it for you</a>. You&#8217;ll be able to:', 'wporg-plugins' ) ), esc_url( home_url( 'developers/add/' ) ) );
     29                    ?>
     30                </p>
     31                <ul>
     32                    <li><?php esc_html_e( 'Keep track of how many people have downloaded it.', 'wporg-plugins' ); ?></li>
     33                    <li><?php esc_html_e( 'Let people leave comments about your plugin.', 'wporg-plugins' ); ?></li>
     34                    <li><?php esc_html_e( 'Get your plugin rated against all the other cool WordPress plugins.', 'wporg-plugins' ); ?></li>
     35                    <li><?php esc_html_e( 'Give your plugin lots of exposure in this centralized repository.', 'wporg-plugins' ); ?></li>
     36                </ul>
    2237
    23                         <p><?php printf( __( 'You&#8217;ve got a cool new plugin and are hoping to give it some exposure. You&#8217;re in the right place. Just <a href="%s">ask us to host it for you</a>. You&#8217;ll be able to:', 'wporg-plugins' ), esc_url( home_url( 'developers/add/' ) ) ); ?></p>
    24                         <ul>
    25                             <li><?php _e( 'Keep track of how many people have downloaded it.', 'wporg-plugins' ); ?></li>
    26                             <li><?php _e( 'Let people leave comments about your plugin.', 'wporg-plugins' ); ?></li>
    27                             <li><?php _e( 'Get your plugin rated against all the other cool WordPress plugins.', 'wporg-plugins' ); ?></li>
    28                             <li><?php _e( 'Give your plugin lots of exposure in this centralized repository.', 'wporg-plugins' ); ?></li>
    29                         </ul>
     38                <h3><?php esc_html_e( 'There are some restrictions', 'wporg-plugins' ); ?></h3>
     39                <ul>
     40                    <li>
     41                        <?php
     42                        /* translators: URL to licence list. */
     43                        printf( wp_kses_post( __( 'Your plugin must be compatible with the <a href="%s">GNU General Public License v2</a>, or any later version. We strongly recommend using the same license as WordPress — &#8220;GPLv2 or later.&#8221;', 'wporg-plugins' ) ), esc_url( 'https://www.gnu.org/licenses/license-list.html#GPLCompatibleLicenses' ) );
     44                        ?>
     45                    </li>
     46                    <li><?php esc_html_e( 'The plugin must not do anything illegal or be morally offensive (that&#8217;s subjective, we know).', 'wporg-plugins' ); ?></li>
     47                    <li>
     48                        <?php
     49                        /* translators: URL to Subversion. */
     50                        printf( wp_kses_post( __( 'You have to actually use the <a href="%s">Subversion</a> repository we give you in order for your plugin to show up on this site. The WordPress Plugin Directory is a hosting site, not a listing site.', 'wporg-plugins' ) ), esc_url( 'https://subversion.apache.org/' ) );
     51                        ?>
     52                    </li>
     53                    <li><?php esc_html_e( 'The plugin must not embed external links on the public site (like a &#8220;powered by&#8221; link) without explicitly asking the user&#8217;s permission.', 'wporg-plugins' ); ?></li>
     54                    <li>
     55                        <?php
     56                        /* translators: URL to plugin guidelines. */
     57                        printf( wp_kses_post( __( 'Your plugin must abide by our list of <a href="%s">detailed guidelines</a>, which include not being a spammer and not abusing the systems.', 'wporg-plugins' ) ), esc_url( 'https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/' ) );
     58                        ?>
     59                    </li>
     60                </ul>
    3061
    31                         <h3><?php _e( 'There are some restrictions', 'wporg-plugins' ); ?></h3>
    32                         <ul>
    33                             <li><?php printf( __( 'Your plugin must be compatible with the <a href="%s">GNU General Public License v2</a>, or any later version. We strongly recommend using the same license as WordPress — &#8220;GPLv2 or later.&#8221;', 'wporg-plugins' ), esc_url( 'https://www.gnu.org/licenses/license-list.html#GPLCompatibleLicenses' ) ); ?></li>
    34                             <li><?php _e( 'The plugin must not do anything illegal or be morally offensive (that&#8217;s subjective, we know).', 'wporg-plugins' ); ?></li>
    35                             <li><?php printf( __( 'You have to actually use the <a href="%s">Subversion</a> repository we give you in order for your plugin to show up on this site. The WordPress Plugin Directory is a hosting site, not a listing site.', 'wporg-plugins' ), esc_url( 'https://subversion.apache.org/' ) ); ?></li>
    36                             <li><?php _e( 'The plugin must not embed external links on the public site (like a &#8220;powered by&#8221; link) without explicitly asking the user&#8217;s permission.', 'wporg-plugins' ); ?></li>
    37                             <li><?php printf( __( 'Your plugin must abide by our list of <a href="%s">detailed guidelines</a>, which include not being a spammer and not abusing the systems.', 'wporg-plugins' ), esc_url( 'https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/' ) ); ?></li>
    38                         </ul>
     62                <h3><?php esc_html_e( 'Submission is Simple', 'wporg-plugins' ); ?></h3>
     63                <ol>
     64                    <li>
     65                        <?php
     66                        /* translators: URL to registration form. */
     67                        printf( wp_kses_post( __( '<a href="%s">Sign up</a> for an account on WordPress.org.', 'wporg-plugins' ) ), esc_url( wp_registration_url() ) );
     68                        ?>
     69                    </li>
     70                    <li>
     71                        <?php
     72                        /* translators: URL to plugin submission form. */
     73                        printf( wp_kses_post( __( '<a href="%s">Submit your plugin for review</a>.', 'wporg-plugins' ) ), esc_url( home_url( 'developers/add/' ) ) );
     74                        ?>
     75                    </li>
     76                    <li>
     77                        <?php
     78                        /* translators: URL to submission FAQ. */
     79                        printf( wp_kses_post( __( 'After your plugin is <a href="%s">manually reviewed</a>, it will either be approved or you will be emailed and asked to provide more information and/or make corrections.', 'wporg-plugins' ) ), esc_url( 'https://developer.wordpress.org/plugins/wordpress-org/plugin-developer-faq/#questions-about-submissions-and-approval' ) );
     80                        ?>
     81                    </li>
     82                    <li>
     83                        <?php
     84                        /* translators: URL to Subversion how-to page. */
     85                        printf( wp_kses_post( __( 'Once approved, you&#8217;ll be given access to a <a id="subversion" href="%s">Subversion Repository</a> where you&#8217;ll store your plugin.', 'wporg-plugins' ) ), esc_url( 'https://developer.wordpress.org/plugins/wordpress-org/how-to-use-subversion/' ) );
     86                        ?>
     87                    </li>
     88                    <li>
     89                        <?php
     90                        /* translators: 1: URL to readme section; 2: URL to home page; */
     91                        printf( wp_kses_post( __( 'Shortly after you upload your plugin (and a <a href="%1$s">readme file</a>!) to that repository, it will be automatically displayed in the <a href="%2$s">plugins browser</a>.', 'wporg-plugins' ) ), '#readme', esc_url( home_url( '/' ) ) );
     92                        ?>
     93                    </li>
     94                    <li>
     95                        <?php
     96                        /* translators: URL to developer FAQ. */
     97                        printf( wp_kses_post( __( 'Check out the <strong><a href="%s">FAQ</a></strong> for more information.', 'wporg-plugins' ) ), esc_url( 'https://developer.wordpress.org/plugins/wordpress-org/plugin-developer-faq/' ) );
     98                        ?>
     99                    </li>
     100                </ol>
    39101
    40                         <h3><?php _e( 'Submission is Simple', 'wporg-plugins' ); ?></h3>
    41                         <ol>
    42                             <li><?php printf( __( '<a href="%s">Sign up</a> for an account on WordPress.org.', 'wporg-plugins' ), esc_url( wp_registration_url() ) ); ?></li>
    43                             <li><?php printf( __( '<a href="%s">Submit your plugin for review</a>.', 'wporg-plugins' ), esc_url( home_url( 'developers/add/' ) ) ); ?></li>
    44                             <li><?php printf( __( 'After your plugin is <a href="%s">manually reviewed</a>, it will either be approved or you will be emailed and asked to provide more information and/or make corrections.', 'wporg-plugins' ), esc_url( 'https://developer.wordpress.org/plugins/wordpress-org/plugin-developer-faq/#questions-about-submissions-and-approval' ) ); ?></li>
    45                             <li><?php printf( __( 'Once approved, you&#8217;ll be given access to a <a id="subversion" href="%s">Subversion Repository</a> where you&#8217;ll store your plugin.', 'wporg-plugins' ), esc_url( 'https://developer.wordpress.org/plugins/wordpress-org/how-to-use-subversion/' ) ); ?></li>
    46                             <li>
    47                                 <?php
    48                                 /* translators: 1: URL to readme section; 2: URL to home page; */
    49                                 printf( __( 'Shortly after you upload your plugin (and a <a href="%1$s">readme file</a>!) to that repository, it will be automatically displayed in the <a href="%2$s">plugins browser</a>.', 'wporg-plugins' ), '#readme', esc_url( home_url( '/' ) ) );
    50                                 ?>
    51                             </li>
    52                             <li><?php printf( __( 'Check out the <strong><a href="%s">FAQ</a></strong> for more information.', 'wporg-plugins' ), esc_url( 'https://developer.wordpress.org/plugins/wordpress-org/plugin-developer-faq/' ) ); ?></li>
    53                         </ol>
    54 
    55                         <h3 id="readme"><?php _e( 'Readme files', 'wporg-plugins' ); ?></h3>
    56                         <p>
    57                             <?php
    58                             /* translators: 1: URL to readme file; 2: URL to readme validator; */
    59                             printf( __( 'To make your entry in the plugin browser most useful, each plugin should have a readme file named <code>readme.txt</code> that adheres to the <a href="%1$s">WordPress plugin readme file standard</a>. You can put your readme file through the <a href="%2$s">readme validator</a> to check it.', 'wporg-plugins' ), esc_url( home_url( 'files/2017/03/readme.txt' ) ), esc_url( home_url( '/developers/readme-validator/' ) ) );
    60                             ?>
    61                         </p>
     102                <h3 id="readme"><?php esc_html_e( 'Readme files', 'wporg-plugins' ); ?></h3>
     103                <p>
     104                    <?php
     105                    /* translators: 1: URL to readme file; 2: URL to readme validator; */
     106                    printf( wp_kses_post( __( 'To make your entry in the plugin browser most useful, each plugin should have a readme file named <code>readme.txt</code> that adheres to the <a href="%1$s">WordPress plugin readme file standard</a>. You can put your readme file through the <a href="%2$s">readme validator</a> to check it.', 'wporg-plugins' ) ), esc_url( home_url( 'files/2017/03/readme.txt' ) ), esc_url( home_url( '/developers/readme-validator/' ) ) );
     107                    ?>
     108                </p>
    62109            </div><!-- .entry-content -->
    63110
     
    66113                edit_post_link(
    67114                    sprintf(
    68                     /* translators: %s: Name of current post */
     115                        /* translators: %s: Name of current post */
    69116                        esc_html__( 'Edit %s', 'wporg-plugins' ),
    70117                        the_title( '<span class="screen-reader-text">"', '"</span>', false )
Note: See TracChangeset for help on using the changeset viewer.