Making WordPress.org

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#2130 closed defect (bug) (fixed)

Username not accepted when submitting a video

Reported by: casiepa's profile casiepa Owned by: dd32's profile dd32
Milestone: Priority: normal
Component: WordPress.tv Keywords:
Cc:

Description

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
7 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.


7 years ago

#3 @dd32
7 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.