Making WordPress.org


Ignore:
Timestamp:
12/16/2019 02:09:35 AM (6 years ago)
Author:
dd32
Message:

Theme Directory: Convert the uploads page into a real shortcode (That returns content) and hard-code the strings on the upload page to allow translation.

Props dingo_d.
Fixes #4839.

File:
1 edited

Legend:

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

    r9211 r9345  
    3838            <div class="entry-content">
    3939                <p><?php esc_html_e( 'Your theme will be submitted for review to be distributed on the official WordPress.org Theme Directory.', 'wporg-themes' ); ?></p>
    40                 <?php the_content(); // do_shortcode( '[wporg-themes-upload]' ); ?>
     40                <h3><?php esc_html_e( 'Read the requirements before updating a theme', 'wporg-themes' ); ?></h3>
     41                <p><?php printf(
     42                    /* translators: 1: Link to WordPress.org; 2: Link to the Theme Handbook Requied Review items. */
     43                    __( 'In order to have your theme hosted on <a href="%1$s">WordPress.org</a>, your code is required to comply with all the <a href="%2$s">requirements on the Theme Review Teams handbook page</a>.'),
     44                    esc_url( 'https://wordpress.org/' ),
     45                    esc_url( 'https://make.wordpress.org/themes/handbook/review/required/' )
     46                ); ?></p>
     47                <div style="height: 20px;" aria-hidden="true" class="wp-block-spacer"></div>
     48                <?php the_content(); ?>
     49                <div style="height: 20px;" aria-hidden="true" class="wp-block-spacer"></div>
     50                <h3><?php esc_html_e( 'How to upload a theme update', 'wporg-themes' ); ?></h3>
     51                <p><?php printf(
     52                    /* translators: 1: style.css; 2: themename.zip */
     53                    __( 'If you are uploading a theme update, simply increase the version inside of %1$s and upload the %2$s file again, just like you do with a new theme.', 'wporg-themes' ),
     54                    '<code>style.css</code>',
     55                    '<code>themename.zip</code>'
     56                ); ?></p>
    4157            </div><!-- .entry-content -->
    4258
Note: See TracChangeset for help on using the changeset viewer.