Changeset 1578806
- Timestamp:
- 01/20/2017 03:46:33 PM (9 years ago)
- File:
-
- 1 edited
-
text-link-ads/trunk/textlinkads.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
text-link-ads/trunk/textlinkads.php
r909993 r1578806 5 5 Description: Allows many xml keys per plugin install. Text Link Ads sell ads on specific pages. Join the Text Link Ads marketplace. 6 6 Author: Text Link Ads 7 Version: 3.9.137 Version: 4.0.0 8 8 Author URI: http://www.matomyseo.com/?ref=267085 9 9 */ … … 442 442 class textlinkads_Widget extends WP_Widget 443 443 { 444 function textlinkads_Widget()444 function __construct() 445 445 { 446 446 parent::WP_Widget(false, $name = 'Text Link Ads'); … … 540 540 var $ads; 541 541 542 function textlinkadsObject()542 function __construct() 543 543 { 544 544 global $table_prefix; … … 833 833 function decode($str) 834 834 { 835 if (!function_exists('html_entity_decode')) {836 function html_entity_decode($string)837 {838 // replace numeric entities839 $str = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\1"))', $str);840 $str = preg_replace('~&#([0-9]+);~e', 'chr(\1)', $str);841 // replace literal entities842 $transTable = get_html_translation_table(HTML_ENTITIES);843 $transTable = array_flip($transTable);844 return strtr($str, $transTable);845 }846 }847 848 835 if (substr($str, 0, 1) == '[') { 849 836 $arr = json_decode($str, true);
Note: See TracChangeset
for help on using the changeset viewer.