Make WordPress Core


Ignore:
Timestamp:
07/19/2019 12:08:38 AM (6 years ago)
Author:
pento
Message:

Coding Standards: Improve spacing of printf() calls in the admin About pages.

Props garrett-eclipse.
Fixes #47734.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/freedoms.php

    r45659 r45660  
    2727<h1>
    2828    <?php
    29     /* translators: %s: The current WordPress version number */
    30     printf( __( 'Welcome to WordPress&nbsp;%s' ), $display_version );
     29    printf(
     30        /* translators: %s: The current WordPress version number */
     31        __( 'Welcome to WordPress&nbsp;%s' ),
     32        $display_version
     33    );
    3134    ?>
    3235</h1>
     
    4447<div class="wp-badge">
    4548    <?php
    46     /* translators: %s: The current WordPress version number */
    47     printf( __( 'Version %s' ), $display_version );
     49    printf(
     50        /* translators: %s: The current WordPress version number */
     51        __( 'Version %s' ),
     52        $display_version
     53    );
    4854    ?>
    4955</div>
     
    6167        <p class="about-description">
    6268        <?php
     69        printf(
    6370            /* translators: %s: https://wordpress.org/about/license/ */
    64             printf( __( 'WordPress is Free and open source software, built by a distributed community of mostly volunteer developers from around the world. WordPress comes with some awesome, worldview-changing rights courtesy of its <a href="%s">license</a>, the GPL.' ), __( 'https://wordpress.org/about/license/' ) );
     71            __( 'WordPress is Free and open source software, built by a distributed community of mostly volunteer developers from around the world. WordPress comes with some awesome, worldview-changing rights courtesy of its <a href="%s">license</a>, the GPL.' ),
     72            __( 'https://wordpress.org/about/license/' )
     73        );
    6574        ?>
    6675        </p>
     
    93102        <p>
    94103        <?php
     104        printf(
    95105            /* translators: %s: https://wordpressfoundation.org/trademark-policy/ */
    96             printf( __( 'WordPress grows when people like you tell their friends about it, and the thousands of businesses and services that are built on and around WordPress share that fact with their users. We&#8217;re flattered every time someone spreads the good word, just make sure to <a href="%s">check out our trademark guidelines</a> first.' ), 'https://wordpressfoundation.org/trademark-policy/' );
     106            __( 'WordPress grows when people like you tell their friends about it, and the thousands of businesses and services that are built on and around WordPress share that fact with their users. We&#8217;re flattered every time someone spreads the good word, just make sure to <a href="%s">check out our trademark guidelines</a> first.' ),
     107            'https://wordpressfoundation.org/trademark-policy/'
     108        );
    97109        ?>
    98110        </p>
     
    100112        <p>
    101113        <?php
    102             $plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : __( 'https://wordpress.org/plugins/' );
    103             $themes_url  = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : __( 'https://wordpress.org/themes/' );
     114        $plugins_url = current_user_can( 'activate_plugins' ) ? admin_url( 'plugins.php' ) : __( 'https://wordpress.org/plugins/' );
     115        $themes_url  = current_user_can( 'switch_themes' ) ? admin_url( 'themes.php' ) : __( 'https://wordpress.org/themes/' );
     116        printf(
    104117            /* translators: %s: https://wordpress.org/about/license/ */
    105             printf( __( 'Every plugin and theme in WordPress.org&#8217;s directory is 100%% GPL or a similarly free and compatible license, so you can feel safe finding <a href="%1$s">plugins</a> and <a href="%2$s">themes</a> there. If you get a plugin or theme from another source, make sure to <a href="%3$s">ask them if it&#8217;s GPL</a> first. If they don&#8217;t respect the WordPress license, we don&#8217;t recommend them.' ), $plugins_url, $themes_url, __( 'https://wordpress.org/about/license/' ) );
     118            __( 'Every plugin and theme in WordPress.org&#8217;s directory is 100%% GPL or a similarly free and compatible license, so you can feel safe finding <a href="%1$s">plugins</a> and <a href="%2$s">themes</a> there. If you get a plugin or theme from another source, make sure to <a href="%3$s">ask them if it&#8217;s GPL</a> first. If they don&#8217;t respect the WordPress license, we don&#8217;t recommend them.' ),
     119            $plugins_url,
     120            $themes_url,
     121            __( 'https://wordpress.org/about/license/' )
     122        );
    106123        ?>
    107124        </p>
Note: See TracChangeset for help on using the changeset viewer.