I might get to submitting a patch later, but here's a quick report for now.

  // Remove the target attribute if the default (no target) is selected.
  if (empty($item['attributes']) || $item['attributes']['target'] == LINK_TARGET_DEFAULT) {
    unset($item['attributes']['target']);
  }

Should be something like:

  // Remove the target attribute if the default (no target) is selected.
  if (empty($item['attributes']) || isset($item['attributes']['target']) && $item['attributes']['target'] == LINK_TARGET_DEFAULT) {
    unset($item['attributes']['target']);
  }

Comments

eugene.brit’s picture

Status: Active » Needs review
StatusFileSize
new556 bytes

Here is the patch.

berdyshev’s picture

Status: Needs review » Reviewed & tested by the community

it's RTBC for me

jcfiala’s picture

Status: Reviewed & tested by the community » Fixed

Merged!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.