[wp-meta] [Making WordPress.org] #5570: Plugins API - inconsistent results for short_description if being trimmed.

Making WordPress.org noreply at wordpress.org
Mon Jan 11 02:46:11 UTC 2021

#5570: Plugins API - inconsistent results for short_description if being trimmed.
 Reporter:  polevaultweb      |       Owner:  dd32
     Type:  defect            |      Status:  accepted
 Priority:  normal            |   Milestone:
Component:  Plugin Directory  |  Resolution:
 Keywords:                    |

Comment (by dd32):

 I'm unable to find any double trimming, as the trimming only happens at
 plugin import stage, not during the API requests.. I'm going to leave this
 ticket open though and keep running some API requests to see if it can be

 If you see it happen again, checking what this other API returns might be
 curl --silent 'https://wordpress.org/plugins/wp-json/plugins/v1/plugin/wp-
 user-manager' | jq .short_description

 In [10565] above I did alter the import process to account for encoded
 HTML entities in the determination of whether it needs to trim or not,
 it's still counted during the actual trimming, just not during the
 determination of whether to do so.

 $ curl --silent --location -g --request GET
 ]=wp-user-manager&request[fields]=short_description' | jq

 "The most customizable profiles & community builder WordPress plugin
 with front-end login, registration, profile customization and content

 I had considered that maybe the scenario here was a bad translation, but
 it doesn't look like this plugin has any translated descriptions, and
 looking at other translated plugins, the short_description translations
 aren't trimmed to 150char, eg, Hello Dolly spanish at 157char:
 $ curl --silent --location -g --request GET
 ]=hello-dolly&request[fields]=short_description&request[locale]=es_ES' |
 jq .short_description
 "Esto no es solo un plugin, simboliza la esperanza y entusiasmo de toda
 una generación resumidos en las dos palabras más famosas cantadas por
 Louis Armstrong."

Ticket URL: <https://meta.trac.wordpress.org/ticket/5570#comment:3>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org

More information about the wp-meta mailing list