Making WordPress.org


Ignore:
Timestamp:
05/23/2023 06:16:42 AM (17 months ago)
Author:
dd32
Message:

Theme Directory: Allow the Commercial/Community options to be set.

Changes:

  • The no-js fallback form is removed, as it wasn't operational.
  • The capability check was removed from the API response, as the API is cached and cannot be used for that purpose.
  • The capability check is now performed client-side, based on a new currentUser field matching against the themes authorship.
  • The capability check is fixed to allow theme authors to self-edit.

See r12338.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/view-templates/theme-single.php

    r12338 r12600  
    125125                    <p>
    126126                        <button class="button button-secondary" type="submit"><?php esc_html_e( 'Save', 'wporg-themes' ); ?></button>
    127                         <span class="success-msg"><?php esc_html_e( 'Saved!', 'wporg-themes' ) ?></span>
     127                        <span class="success-msg"><?php esc_html_e( 'Saved! Please wait for the caches to update.', 'wporg-themes' ) ?></span>
    128128                    </p>
    129129                    </form>
     
    143143                    <p>
    144144                        <button class="button button-secondary" type="submit"><?php esc_html_e( 'Save', 'wporg-themes' ); ?></button>
    145                         <span class="success-msg"><?php esc_html_e( 'Saved!', 'wporg-themes' ) ?></span>
     145                        <span class="success-msg"><?php esc_html_e( 'Saved! Please wait for the caches to update.', 'wporg-themes' ) ?></span>
    146146                    </p>
    147147                    </form>
Note: See TracChangeset for help on using the changeset viewer.