Plugin Directory

Changeset 1339025


Ignore:
Timestamp:
01/29/2016 04:23:09 PM (10 years ago)
Author:
pagefrog
Message:

adding assets for reals

Location:
pagefrog/trunk
Files:
10 added
2 edited

Legend:

Unmodified
Added
Removed
  • pagefrog/trunk/README.txt

    r1339001 r1339025  
    8282= 1.0.3.1 =
    8383*Release Date - January 29, 2016*
     84
    8485* Added screenshots, icon, banner images
     86* Various AMP & Instant Articles fixes
    8587
    8688= 1.0.3 =
    8789*Release Date - January 28, 2016*
     90
    8891* Launch release
    8992* Facebook Instant Articles Support (beta)
  • pagefrog/trunk/admin/class-pagefrog-instant-articles-parser.php

    r1338828 r1339025  
    686686        }
    687687
     688        // ensure <a> tag href attributes aren't blank - set to '#' if blank
     689        for ($index = 0; $index < $node->childNodes->length; $index += 1) {
     690            $child = $node->childNodes->item($index);
     691            if ($child->nodeName == 'a') {
     692                if ($child->attributes == NULL ||
     693                    $child->attributes->getNamedItem("href") == NULL ||
     694                    trim($child->attributes->getNamedItem("href")->value) == "") {
     695                        $child->setAttribute("href", "#");
     696                }
     697            }
     698        }
     699
    688700        // remove sequential <br> tags when more than 3 (at most 2 should be present)
    689701        $prev_br_children = 0;
Note: See TracChangeset for help on using the changeset viewer.