Is there a reason hook_field_update doesn't update the taxonomy index for unpublished entities? I have a use case where editors can manipulate the taxonomy terms of unpublished nodes but these updates aren't inserted into the taxonomy index table. This makes it a challenge to create a view that searches unpublished nodes by taxonomy term name (as opposed to tid, which can be search by taxonomy_field_name_instance)
This would be trivial to patch as it is just an if statement in line 501 of field.api.php.
FAILED: [[SimpleTest]]: [PHP 5.4 MySQL] Unable to apply patch add-unpublished-nodes-to-taxonomy-index-962664-30.patch. Unable to apply patch. See the log in the details link for more information.
FAILED: [[SimpleTest]]: [MySQL] 34,296 pass(es), 4 fail(s), and 2 exception(s).
PASSED: [[SimpleTest]]: [MySQL] 33,544 pass(es).
FAILED: [[SimpleTest]]: [MySQL] Invalid PHP syntax in modules/taxonomy/taxonomy.module.
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch taxonomy.module_65.patch.