Changeset 3310873
- Timestamp:
- 06/13/2025 07:25:37 AM (10 months ago)
- Location:
- head-footer-code
- Files:
-
- 31 added
- 5 edited
-
tags/1.4.5 (added)
-
tags/1.4.5/LICENSE (added)
-
tags/1.4.5/assets (added)
-
tags/1.4.5/assets/css (added)
-
tags/1.4.5/assets/css/admin.min.css (added)
-
tags/1.4.5/assets/css/admin.min.css.map (added)
-
tags/1.4.5/assets/css/edit.min.css (added)
-
tags/1.4.5/assets/css/edit.min.css.map (added)
-
tags/1.4.5/assets/scss (added)
-
tags/1.4.5/assets/scss/admin.scss (added)
-
tags/1.4.5/assets/scss/edit.scss (added)
-
tags/1.4.5/changelog.txt (added)
-
tags/1.4.5/classes (added)
-
tags/1.4.5/classes/autoload.php (added)
-
tags/1.4.5/classes/techwebux (added)
-
tags/1.4.5/classes/techwebux/hfc (added)
-
tags/1.4.5/classes/techwebux/hfc/class-common.php (added)
-
tags/1.4.5/classes/techwebux/hfc/class-front.php (added)
-
tags/1.4.5/classes/techwebux/hfc/class-grid.php (added)
-
tags/1.4.5/classes/techwebux/hfc/class-main.php (added)
-
tags/1.4.5/classes/techwebux/hfc/class-metabox-article.php (added)
-
tags/1.4.5/classes/techwebux/hfc/class-metabox-category.php (added)
-
tags/1.4.5/classes/techwebux/hfc/class-settings.php (added)
-
tags/1.4.5/head-footer-code.php (added)
-
tags/1.4.5/index.php (added)
-
tags/1.4.5/readme.txt (added)
-
tags/1.4.5/templates (added)
-
tags/1.4.5/templates/hfc-form.php (added)
-
tags/1.4.5/templates/settings.php (added)
-
tags/1.4.5/uninstall.php (added)
-
tags/1.4.5/update.php (added)
-
trunk/classes/techwebux/hfc/class-metabox-category.php (modified) (2 diffs)
-
trunk/classes/techwebux/hfc/class-settings.php (modified) (1 diff)
-
trunk/head-footer-code.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/update.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
head-footer-code/trunk/classes/techwebux/hfc/class-metabox-category.php
r3271581 r3310873 93 93 // Sanitize the `auhfc` data. 94 94 if ( is_array( $_POST['auhfc'] ) ) { 95 // Remove Jetpack filter that may interfere with wp_kses. 96 remove_filter( 'pre_kses', array( 'Filter_Embedded_HTML_Objects', 'maybe_create_links' ), 100 ); 97 98 // Prepare data for saving. 95 99 $data = array( 96 100 'behavior' => ! empty( $_POST['auhfc']['behavior'] ) ? sanitize_key( $_POST['auhfc']['behavior'] ) : '', … … 100 104 'footer' => ! empty( $_POST['auhfc']['footer'] ) ? wp_kses( $_POST['auhfc']['footer'], $allowed_html ) : '', 101 105 ); 106 107 // Re-add Jetpack filter if it exists. 108 // This is to ensure compatibility with Jetpack and other plugins that may use this filter. 109 if ( is_callable( array( 'Filter_Embedded_HTML_Objects', 'maybe_create_links' ) ) ) { 110 add_filter( 'pre_kses', array( 'Filter_Embedded_HTML_Objects', 'maybe_create_links' ), 100 ); 111 } 102 112 } 103 113 -
head-footer-code/trunk/classes/techwebux/hfc/class-settings.php
r3271925 r3310873 547 547 } 548 548 549 // Remove Jetpack filter that may interfere with wp_kses. 550 remove_filter( 'pre_kses', array( 'Filter_Embedded_HTML_Objects', 'maybe_create_links' ), 100 ); 551 549 552 // Filter allowed HTML tags and attributes. 550 553 echo wp_kses( $html, $this->allowed_html ); 554 555 // Re-add the Jetpack filter if it exists. 556 // This is to ensure compatibility with Jetpack and other plugins that may use this filter. 557 if ( is_callable( array( 'Filter_Embedded_HTML_Objects', 'maybe_create_links' ) ) ) { 558 add_filter( 'pre_kses', array( 'Filter_Embedded_HTML_Objects', 'maybe_create_links' ), 100 ); 559 } 551 560 } // END public function textarea_field_render 552 561 -
head-footer-code/trunk/head-footer-code.php
r3303898 r3310873 11 11 * Plugin URI: https://urosevic.net/wordpress/plugins/head-footer-code/ 12 12 * Description: Easy add site-wide, category or article specific custom code before the closing <strong></head></strong> and <strong></body></strong> or after opening <strong><body></strong> HTML tag. 13 * Version: 1.4. 413 * Version: 1.4.5 14 14 * Author: Aleksandar Urošević 15 15 * Author URI: https://urosevic.net/ … … 30 30 } 31 31 32 define( 'HFC_VER', '1.4. 4' );32 define( 'HFC_VER', '1.4.5' ); 33 33 define( 'HFC_VER_DB', '9' ); 34 34 define( 'HFC_FILE', __FILE__ ); -
head-footer-code/trunk/readme.txt
r3303898 r3310873 6 6 Requires at least: 4.9 7 7 Tested up to: 6.8 8 Stable tag: 1.4. 48 Stable tag: 1.4.5 9 9 Requires PHP: 5.5 10 10 License: GPLv3 … … 191 191 ## Changelog 192 192 193 ### 1.4.5 (2025-06-13) 194 * Fix: Compatibility with Jetpack > Writing > Composing > Compose using shortcode to embed media from popular sites 195 * Fix: Automatic conversion of false to array is deprecated in update.php 196 * Test: WordPress 6.8.1, Twenty Twenty-Five 1.2, Jetpack 14.7 197 193 198 ### 1.4.4 (2025-05-31) 194 199 * Fix: Relaxed filtering to allow <link> preloadans security/privacy attributes. -
head-footer-code/trunk/update.php
r3271581 r3310873 243 243 $homepage = get_option( 'auhfc_settings_homepage' ); 244 244 245 if ( ! is_array( $homepage ) ) { 246 return; 247 } 248 245 249 if ( empty( $homepage['allowed_roles'] ) ) { 246 250 $homepage['allowed_roles'] = array();
Note: See TracChangeset
for help on using the changeset viewer.