Making WordPress.org

Ticket #3072: 3072.patch

File 3072.patch, 5.3 KB (added by SergeyBiryukov, 9 years ago)
  • wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-status-transitions.php

     
    161161                // Send email.
    162162                $subject = sprintf( __( '[WordPress Plugin Directory] %s has been approved!', 'wporg-plugins' ), $post->post_title );
    163163
    164                 /* Translators: Plugin name. */
    165                 $content  = sprintf( __( 'Congratulations, your plugin hosting request for %s has been approved.', 'wporg-plugins' ), $post->post_title ). "\n\n";
     164                /* translators: 1: plugin name, 2: plugin slug */
     165                $content  = sprintf( __( 'Congratulations, your plugin hosting request for %1$s has been approved.
    166166
    167                 $content .= __( 'Within one hour you will have access to your SVN repository with the WordPress.org username and password you used to log in and submit your request. Your username is case sensitive.', 'wporg-plugins' ) . "\n\n";
     167Within one hour you will have access to your SVN repository with the WordPress.org username and password you used to log in and submit your request. Your username is case sensitive.
    168168
    169                 $content .= "https://plugins.svn.wordpress.org/{$post->post_name}\n\n";
     169https://plugins.svn.wordpress.org/%2$s
    170170
    171                 $content .= __( 'Here are some handy links to help you get started.', 'wporg-plugins' ) . "\n\n";
     171Here are some handy links to help you get started.
    172172
    173                 $content .= __( 'WordPress Plugin Directory Guidelines:', 'wporg-plugins' ) . "\n";
    174                 $content .= "https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/\n\n";
     173WordPress Plugin Directory Guidelines:
     174https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/
    175175
    176                 $content .= __( 'Using Subversion with the WordPress Plugin Directory:', 'wporg-plugins' ) . "\n";
    177                 $content .= "https://developer.wordpress.org/plugins/wordpress-org/how-to-use-subversion/\n\n";
     176Using Subversion with the WordPress Plugin Directory:
     177https://developer.wordpress.org/plugins/wordpress-org/how-to-use-subversion/
    178178
    179                 $content .= __( 'FAQ about the WordPress Plugin Directory:', 'wporg-plugins' ) . "\n";
    180                 $content .= "https://developer.wordpress.org/plugins/wordpress-org/plugin-developer-faq/\n\n";
     179FAQ about the WordPress Plugin Directory:
     180https://developer.wordpress.org/plugins/wordpress-org/plugin-developer-faq/
    181181
    182                 $content .= __( 'WordPress Plugin Directory readme.txt standard:', 'wporg-plugins' ) . "\n";
    183                 $content .= "https://wordpress.org/plugins/developers/#readme\n\n";
     182WordPress Plugin Directory readme.txt standard:
     183https://wordpress.org/plugins/developers/#readme
    184184
    185                 $content .= __( 'A readme.txt validator:', 'wporg-plugins' ) . "\n";
    186                 $content .= "https://wordpress.org/plugins/developers/readme-validator/\n\n";
     185A readme.txt validator:
     186https://wordpress.org/plugins/developers/readme-validator/
    187187
    188                 $content .= __( 'Plugin Assets (header images etc):', 'wporg-plugins' ) . "\n";
    189                 $content .= "https://developer.wordpress.org/plugins/wordpress-org/plugin-assets/\n\n";
     188Plugin Assets (header images etc):
     189https://developer.wordpress.org/plugins/wordpress-org/plugin-assets/
    190190
    191                 $content .= __( 'If you have issues or questions, please reply to this email and let us know.', 'wporg-plugins' ) . "\n\n";
     191If you have issues or questions, please reply to this email and let us know.
    192192
    193                 $content .= __( 'Enjoy!', 'wporg-plugins' ) . "\n\n";
     193Enjoy!
    194194
    195                 $content .= __( '-The WordPress Plugin Directory Team', 'wporg-plugins' ) . "\n";
    196                 $content .= 'https://make.wordpress.org/plugins/';
     195--
     196The WordPress Plugin Directory Team
     197https://make.wordpress.org/plugins', 'wporg-plugins' ),
     198                        $post->post_title,
     199                        $post->post_name
     200                );
    197201
    198202                wp_mail( $plugin_author->user_email, $subject, $content, 'From: plugins@wordpress.org' );
    199203        }
    … …  
    227231                $email   = get_user_by( 'id', $post->post_author )->user_email;
    228232                $subject = sprintf( __( '[WordPress Plugin Directory] %s has been rejected', 'wporg-plugins' ), $post->post_title );
    229233
    230                 /* Translators: Plugin name. */
    231                 $content  = sprintf( __( 'Unfortunately your plugin submission for %s has been rejected from the WordPress.org Directory.', 'wporg-plugins' ), $post->post_title ). "\n\n\n";
    232                 $content .= sprintf( __( 'If you believe this to be in error, please email %s with your plugin attached as a zip and explain why you feel your plugin should be an exception.', 'wporg-plugins' ), 'plugins@wordpress.org' ). "\n\n\n";
    233                 $content .= __( 'The WordPress Plugin Directory Team', 'wporg-plugins' ) . "\n";
    234                 $content .= 'https://make.wordpress.org/plugins';
     234                /* translators: 1: plugin name, 2: plugins@wordpress.org */
     235                $content  = sprintf( __( 'Unfortunately your plugin submission for %1$s has been rejected from the WordPress.org Directory.
    235236
     237If you believe this to be in error, please email %2$s with your plugin attached as a zip and explain why you feel your plugin should be an exception.
     238
     239--
     240The WordPress Plugin Directory Team
     241https://make.wordpress.org/plugins', 'wporg-plugins' ),
     242                        $post->post_title,
     243                        'plugins@wordpress.org'
     244                );
     245
    236246                wp_mail( $email, $subject, $content, 'From: plugins@wordpress.org' );
    237247        }
    238248