Support » Plugin: Media Author » [Plugin: Media Author] Small bug prevents display of other users in media upload popup

  • Resolved Ov3rfly

    (@ov3rfly)


    A small bug prevents display of other users (which do not own the media) in media upload popup, plugin 1.0.1, WordPress 3.4.2

    For the current user a " selected='selected'" attribute is added, for the other users a wrong "/" is added (an empty string "" should be added) which leads to display problems in browsers as e.g. Firefox 15 regards the option tag as closed and adds the displayname after the tag which makes it invisible in the popup.

    Wrong code: <option value="2"/>Display Name</option>

    foreach ($user_list as $user) {
    	$html .= "<option value='".$user->user_id."'".(($author_id == $user->user_id)? " selected='selected'" : "/").">".$user->display_name."</option>";
    }

    Corrected code: <option value="2">Display Name</option>

    foreach ($user_list as $user) {
    	$html .= "<option value='".$user->user_id."'".(($author_id == $user->user_id)? " selected='selected'" : "").">".$user->display_name."</option>";
    }

    An easy fix, in line 69 replace the "/" with ""

    Besides that, the plugin works fine.

    http://wordpress.org/extend/plugins/media-author/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Media Author] Small bug prevents display of other users in media upload popup’ is closed to new replies.