In a taxonomy term, if the input format is php, and an input of, say <?php echo 'hello world'; ?> is given in the description field, the term itself displays "hello world", as expected.
However, the parent taxonomy term displays the child's php code.

As in, taxonomy term Areca catechu, new line, "hello world".
One level up: taxonomy term Areca, which shows Areca catechu, new line, "<?php echo 'hello world'; ?>"

CommentFileSizeAuthor
#5 taxonomy_context.module.patch798 byteslee20

Comments

Hetta’s picture

Status: Active » Closed (won't fix)

So this is a "won't fix", then?
Eh.

nedjo’s picture

Status: Closed (won't fix) » Active

The appropriate status would be "slipped under radar". I'd welcome a patch. If I find a moment I'll address it myself.

jessa_d’s picture

Status: Active » Needs review

Line 416 should be "taxonomy_context_load('term', $term);" instead of "taxonomy_context_load('term', $terms[$key]);"

Current:

function theme_taxonomy_context_subterms($terms) {
  $output = '';
  if (count($terms)) {
    foreach ($terms as $term) {
      taxonomy_context_load('term', $terms[$key]);

Patched:

function theme_taxonomy_context_subterms($terms) {
  $output = '';
  if (count($terms)) {
    foreach ($terms as $term) {
      taxonomy_context_load('term', $term);
nedjo’s picture

Status: Needs review » Reviewed & tested by the community

Looks right (though I haven't tested yet).

lee20’s picture

Status: Reviewed & tested by the community » Fixed
StatusFileSize
new798 bytes

I confirmed the problem then tested the adjustment made by jessa_d and it resolved the issue. Attached is a patch file but for most it should be easier to just make the adjustment manually.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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