Version Description
(2022-01-02) = * Tested: WordPress 5.9-beta4, Twenty Twenty-Two 1.0 and PHP 8.0.11
Download this release
Release Info
Developer | urkekg |
Plugin | Head & Footer Code |
Version | 1.2.4 |
Comparing to | |
See all releases |
Code changes from version 1.2.3 to 1.2.4
- head-footer-code.php +2 -2
- readme.txt +6 -7
head-footer-code.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
* Plugin Name: Head & Footer Code
|
9 |
* Plugin URI: https://urosevic.net/wordpress/plugins/head-footer-code/
|
10 |
* Description: Easy add site-wide and/or article specific custom code to head and/or footer sections (before the </head> or </body> or opening <body>) by hooking to <code>wp_head</code>, <code>wp_footer</code> and <code>wp_body_open</code>.
|
11 |
-
* Version: 1.2.
|
12 |
* Author: Aleksandar Urosevic
|
13 |
* Author URI: https://urosevic.net/
|
14 |
* License: GPLv3
|
@@ -21,7 +21,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
21 |
die;
|
22 |
}
|
23 |
|
24 |
-
define( 'WPAU_HEAD_FOOTER_CODE_VER', '1.2.
|
25 |
define( 'WPAU_HEAD_FOOTER_CODE_DB_VER', '6' );
|
26 |
define( 'WPAU_HEAD_FOOTER_CODE_FILE', __FILE__ );
|
27 |
define( 'WPAU_HEAD_FOOTER_CODE_DIR', dirname( WPAU_HEAD_FOOTER_CODE_FILE ) . '/');
|
8 |
* Plugin Name: Head & Footer Code
|
9 |
* Plugin URI: https://urosevic.net/wordpress/plugins/head-footer-code/
|
10 |
* Description: Easy add site-wide and/or article specific custom code to head and/or footer sections (before the </head> or </body> or opening <body>) by hooking to <code>wp_head</code>, <code>wp_footer</code> and <code>wp_body_open</code>.
|
11 |
+
* Version: 1.2.4
|
12 |
* Author: Aleksandar Urosevic
|
13 |
* Author URI: https://urosevic.net/
|
14 |
* License: GPLv3
|
21 |
die;
|
22 |
}
|
23 |
|
24 |
+
define( 'WPAU_HEAD_FOOTER_CODE_VER', '1.2.4' );
|
25 |
define( 'WPAU_HEAD_FOOTER_CODE_DB_VER', '6' );
|
26 |
define( 'WPAU_HEAD_FOOTER_CODE_FILE', __FILE__ );
|
27 |
define( 'WPAU_HEAD_FOOTER_CODE_DIR', dirname( WPAU_HEAD_FOOTER_CODE_FILE ) . '/');
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: urkekg, techwebux
|
|
3 |
Donate link: https://urosevic.net/wordpress/donate/?donate_for=head-footer-code
|
4 |
Tags: head, header, footer, body, scripts, wp_head, wp_footer, wp_body_open, head footer code, custom script
|
5 |
Requires at least: 4.9
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 1.2.
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -104,11 +104,7 @@ This feature is implemented since WordPress version 5.2 and requires theme compa
|
|
104 |
|
105 |
To make sure if theme you use supports [wp_body_open](https://developer.wordpress.org/reference/hooks/wp_body_open/) hook, open in code editor `header.php` file from theme you use, and check if right after opening `<BODY>` tag there is following code (if it does not exists, add it or ask some developer to do that for you):
|
106 |
|
107 |
-
|
108 |
-
if ( function_exists( 'wp_body_open' ) ) {
|
109 |
-
wp_body_open();
|
110 |
-
}
|
111 |
-
```
|
112 |
|
113 |
== Screenshots ==
|
114 |
|
@@ -126,6 +122,9 @@ if ( function_exists( 'wp_body_open' ) ) {
|
|
126 |
Initial release of new plugin developed by Aleksandar Urosevic.
|
127 |
|
128 |
== Changelog ==
|
|
|
|
|
|
|
129 |
= 1.2.3 (2021-07-19) =
|
130 |
* Tested: on WordPress 5.8-RC4 and PHP 8.0.8
|
131 |
* (2021-05-04) Fix: Notice errors Trying to get property 'post_type' of non-object in inc/front.php (thanks to @tekgirlymama)
|
3 |
Donate link: https://urosevic.net/wordpress/donate/?donate_for=head-footer-code
|
4 |
Tags: head, header, footer, body, scripts, wp_head, wp_footer, wp_body_open, head footer code, custom script
|
5 |
Requires at least: 4.9
|
6 |
+
Tested up to: 5.9
|
7 |
+
Stable tag: 1.2.4
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
104 |
|
105 |
To make sure if theme you use supports [wp_body_open](https://developer.wordpress.org/reference/hooks/wp_body_open/) hook, open in code editor `header.php` file from theme you use, and check if right after opening `<BODY>` tag there is following code (if it does not exists, add it or ask some developer to do that for you):
|
106 |
|
107 |
+
`<?php if ( function_exists( 'wp_body_open' ) ) { wp_body_open(); } ?>`
|
|
|
|
|
|
|
|
|
108 |
|
109 |
== Screenshots ==
|
110 |
|
122 |
Initial release of new plugin developed by Aleksandar Urosevic.
|
123 |
|
124 |
== Changelog ==
|
125 |
+
= 1.2.4 (2022-01-02) =
|
126 |
+
* Tested: WordPress 5.9-beta4, Twenty Twenty-Two 1.0 and PHP 8.0.11
|
127 |
+
|
128 |
= 1.2.3 (2021-07-19) =
|
129 |
* Tested: on WordPress 5.8-RC4 and PHP 8.0.8
|
130 |
* (2021-05-04) Fix: Notice errors Trying to get property 'post_type' of non-object in inc/front.php (thanks to @tekgirlymama)
|