Changeset 14697
- Timestamp:
- 03/12/2026 03:17:41 AM (41 hours ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes
- Files:
-
- 3 edited
-
class-readme-validator.php (modified) (1 diff)
-
class-release-confirmation.php (modified) (1 diff)
-
class-upload.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-readme-validator.php
r14245 r14697 11 11 */ 12 12 public static function display() { 13 // In the rest-api, just return the shortcode tag, so it can be rendered properly in the app or other consumers. 14 if ( wp_is_serving_rest_request() ) { 15 return '[readme-validator]'; 16 } 17 13 18 $readme_url = ''; 14 19 $readme_contents = ''; -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-release-confirmation.php
r14620 r14697 26 26 */ 27 27 static function display() { 28 // In the rest-api, just return the shortcode tag, so it can be rendered properly in the app or other consumers. 29 if ( wp_is_serving_rest_request() ) { 30 return '[' . self::SHORTCODE . ']'; 31 } 32 28 33 $plugins = Tools::get_users_write_access_plugins( wp_get_current_user() ); 29 34 -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload.php
r14614 r14697 50 50 */ 51 51 public static function display() { 52 // In the rest-api, just return the shortcode tag, so it can be rendered properly in the app or other consumers. 53 if ( wp_is_serving_rest_request() ) { 54 return '[wporg-plugin-upload]'; 55 } 56 52 57 if ( ! is_user_logged_in() ) { 53 58 return '<div class="notice notice-error notice-alt"><p>' . sprintf(
Note: See TracChangeset
for help on using the changeset viewer.