WordPress.org

Make WordPress Core

Ticket #47734: 47734.diff

File 47734.diff, 8.1 KB (added by garrett-eclipse, 3 years ago)

Patch to introduce consistency and make all printf statements multiline

  • src/wp-admin/about.php

     
    1919        <div class="wrap about-wrap full-width-layout">
    2020                <h1>
    2121                        <?php
    22                         /* translators: %s: The current WordPress version number */
    23                         printf( __( 'Welcome to WordPress&nbsp;%s' ), $display_version );
     22                        printf(
     23                                /* translators: %s: The current WordPress version number */
     24                                __( 'Welcome to WordPress&nbsp;%s' ),
     25                                $display_version
     26                        );
    2427                        ?>
    2528                </h1>
    2629
     
    3639
    3740                <div class="wp-badge">
    3841                        <?php
    39                         /* translators: %s: The current WordPress version number */
    40                         printf( __( 'Version %s' ), $display_version );
     42                        printf(
     43                                /* translators: %s: The current WordPress version number */
     44                                __( 'Version %s' ),
     45                                $display_version
     46                        );
    4147                        ?>
    4248                </div>
    4349
  • src/wp-admin/credits.php

     
    2020
    2121<h1>
    2222        <?php
    23         /* translators: %s: The current WordPress version number */
    24         printf( __( 'Welcome to WordPress&nbsp;%s' ), $display_version );
     23        printf(
     24                /* translators: %s: The current WordPress version number */
     25                __( 'Welcome to WordPress&nbsp;%s' ),
     26                $display_version
     27        );
    2528        ?>
    2629</h1>
    2730
     
    3740
    3841<div class="wp-badge">
    3942        <?php
    40         /* translators: %s: The current WordPress version number */
    41         printf( __( 'Version %s' ), $display_version );
     43        printf(
     44                /* translators: %s: The current WordPress version number */
     45                __( 'Version %s' ),
     46                $display_version
     47        );
    4248        ?>
    4349</div>
    4450
  • src/wp-admin/freedoms.php

     
    2626
    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>
    3336
     
    4346
    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>
    5056
     
    6066                <h2><?php _e( 'Freedoms' ); ?></h2>
    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>
    6776        </div>
     
    92101        <div class="feature-section has-1-columns">
    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>
    99111
    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>
    108125
  • src/wp-admin/privacy.php

     
    1919
    2020<h1>
    2121        <?php
    22         /* translators: %s: The current WordPress version number */
    23         printf( __( 'Welcome to WordPress&nbsp;%s' ), $display_version );
     22        printf(
     23                /* translators: %s: The current WordPress version number */
     24                __( 'Welcome to WordPress&nbsp;%s' ),
     25                $display_version
     26        );
    2427        ?>
    2528</h1>
    2629
     
    3639
    3740<div class="wp-badge">
    3841        <?php
    39         /* translators: %s: The current WordPress version number */
    40         printf( __( 'Version %s' ), $display_version );
     42        printf(
     43                /* translators: %s: The current WordPress version number */
     44                __( 'Version %s' ),
     45                $display_version
     46        );
    4147        ?>
    4248</div>
    4349
     
    5359
    5460        <p>
    5561                <?php
    56                 /* translators: %s: https://wordpress.org/about/stats/ */
    57                 printf( __( 'This data is used to provide general enhancements to WordPress, which includes helping to protect your site by finding and automatically installing new updates. It is also used to calculate statistics, such as those shown on the <a href="%s">WordPress.org stats page</a>.' ), __( 'https://wordpress.org/about/stats/' ) );
     62                printf(
     63                        /* translators: %s: https://wordpress.org/about/stats/ */
     64                        __( 'This data is used to provide general enhancements to WordPress, which includes helping to protect your site by finding and automatically installing new updates. It is also used to calculate statistics, such as those shown on the <a href="%s">WordPress.org stats page</a>.' ),
     65                        __( 'https://wordpress.org/about/stats/' )
     66                );
    5867                ?>
    5968        </p>
    6069
    6170        <p>
    6271                <?php
    63                 /* translators: %s: https://wordpress.org/about/privacy/ */
    64                 printf( __( 'We take privacy and transparency very seriously. To learn more about what data we collect, and how we use it, please visit <a href="%s">WordPress.org/about/privacy</a>.' ), __( 'https://wordpress.org/about/privacy/' ) );
     72                printf(
     73                        /* translators: %s: https://wordpress.org/about/privacy/ */
     74                        __( 'We take privacy and transparency very seriously. To learn more about what data we collect, and how we use it, please visit <a href="%s">WordPress.org/about/privacy</a>.' ),
     75                        __( 'https://wordpress.org/about/privacy/' )
     76                );
    6577                ?>
    6678        </p>
    6779</div>