Making WordPress.org

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#2130 closed defect (fixed)

Username not accepted when submitting a video

Reported by: casiepa Owned by: dd32
Milestone: Priority: normal
Component: WordPress.tv Keywords:


On the http://wordpress.tv/submit-video page, when adding a wordpress.org username like 'casiepa' or 'nao' results in an error:

Error: please enter a valid WordPress.org username for the producer, or leave the field empty.

Thanks, Pascal.

Change History (3)

#1 @dd32
5 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Thanks for reporting @casiepa!

I've fixed this in the WordPress.tv codebase, which unfortunately is not open-sourced.

This was broken when WordPress.tv switched to running WordPress 4.6 as the result from wp_remote_retrieve_headers() changed from an array to an object and subsequently array_key_exists() failed (cc @rmccue - no, nothing needs changing!)

This ticket was mentioned in Slack in #wptv by casiepa. View the logs.

5 years ago

#3 @dd32
5 years ago

  • Owner set to dd32

In 4220:

WordPress.tv: Fix wporg_username_exists() to work after the Requests WP_HTTP changes in 4.6.

The response from wp_remote_retrieve_headers() changed from a "real array" to an object implementing ArrayAccess, array_key_exists() is pretty much the one function that could've been used here that was incompatible with it.

Fixes #2130

Note: See TracTickets for help on using tickets.