Changeset 2097481
- Timestamp:
- 05/29/2019 07:40:23 PM (7 years ago)
- Location:
- addfunc-head-footer-code
- Files:
-
- 5 added
- 3 edited
-
tags/2.2/addfunc-head-footer-code.php (modified) (1 diff)
-
tags/2.3 (added)
-
tags/2.3/addfunc-head-footer-code.php (added)
-
tags/2.3/index.php (added)
-
tags/2.3/options.php (added)
-
tags/2.3/readme.txt (added)
-
trunk/addfunc-head-footer-code.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
addfunc-head-footer-code/tags/2.2/addfunc-head-footer-code.php
r2073508 r2097481 111 111 $queue = array(); 112 112 preg_match($pattern,$tape,$queue); 113 $q = $queue[0] ;113 $q = $queue[0] ? $queue[0] : array(); 114 114 $q = $q.$body_code->output_body_code(); 115 115 echo preg_replace($pattern,$q,$tape); -
addfunc-head-footer-code/trunk/addfunc-head-footer-code.php
r2073508 r2097481 4 4 Plugin URI: 5 5 Description: Allows administrators to add code to the <head> and/or <footer> of an individual post and/or site-wide. Ideal for scripts such as Google Analytics conversion tracking codes and any other general or page-specific JavaScript. 6 Version: 2. 26 Version: 2.3 7 7 Author: AddFunc 8 8 Author URI: http://profiles.wordpress.org/addfunc … … 107 107 function aFHFCBuffPlay(){ 108 108 $body_code = new aFHFCClass; 109 $tape = ob_get_clean();110 109 $pattern = '/<[bB][oO][dD][yY]\s[A-Za-z]{2,5}[A-Za-z0-9 "_,=%*\'\/():;\[\]\-\.]+>|<body>/'; 111 110 $queue = array(); 111 $tape = ob_get_clean(); 112 112 preg_match($pattern,$tape,$queue); 113 $q = $queue[0]; 114 $q = $q.$body_code->output_body_code(); 113 $q = empty($queue[0]) ? '' : $queue[0].$body_code->output_body_code(); 115 114 echo preg_replace($pattern,$q,$tape); 116 115 } -
addfunc-head-footer-code/trunk/readme.txt
r2073508 r2097481 6 6 Tags: head code, footer code, add to head, per page, tracking code, Google Analytics, javascript, meta tags, wp_head, wp_footer, body tag code, opening body tag 7 7 Requires at least: 3.0.1 8 Tested up to: 5. 19 Stable tag: 2. 28 Tested up to: 5.2 9 Stable tag: 2.3 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 65 65 == Changelog == 66 66 67 = 2.3 = 68 23 May 2019 69 70 * Fixes a PHP notice, which appeared on the login dialog when WP_DEBUG was ON. (I think I actually got it this time.) 71 67 72 = 2.2 = 68 73 23 Apr 2019 69 74 70 * Fixes a PHP notice, which appeared on the login dialog when WP_DEBUG was ON. 75 * Fixes a PHP notice, which appeared on the login dialog when WP_DEBUG was ON. Edit: not fixed, just a different error. 71 76 72 77 = 2.1 =
Note: See TracChangeset
for help on using the changeset viewer.