Changeset 2230136
- Timestamp:
- 01/20/2020 09:19:44 AM (6 years ago)
- Location:
- oh-add-script-header-footer/trunk
- Files:
-
- 3 edited
-
oh-add-script-header-footer.php (modified) (1 diff)
-
oh-terms-settings.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
oh-add-script-header-footer/trunk/oh-add-script-header-footer.php
r2212294 r2230136 5 5 * Description: create a simple way to add js code to individual page post or custom post type header 6 6 * and footer, in this way it enable you to add google re-marketing code to individual pages 7 * Version: 3. 87 * Version: 3.9 8 8 * Author: orenhav (SOGO) 9 9 * Author URI: http://sogo.co.il -
oh-add-script-header-footer/trunk/oh-terms-settings.php
r1760618 r2230136 26 26 27 27 function update_category_meta( $term_id ) { 28 // Secondly we need to check if the user intended to change this value. 29 if ( ! isset( $_POST['oh_add_script_noncename'] ) || ! wp_verify_nonce( $_POST['oh_add_script_noncename'], plugin_basename( __FILE__ ) ) ) 30 return; 28 31 29 32 if ( isset( $_POST['oh-hide-header'] ) && '' !== $_POST['oh-hide-header'] ) { … … 60 63 $header = get_term_meta( $term->term_id, 'oh-header-script', true ); 61 64 $footer = get_term_meta( $term->term_id, 'oh-footer-script', true ); 62 65 wp_nonce_field( plugin_basename( __FILE__ ), 'oh_add_script_noncename' ); 63 66 ?> 64 67 -
oh-add-script-header-footer/trunk/readme.txt
r2212294 r2230136 5 5 Requires at least: 3.5 6 6 Tested up to: 5.3.1 7 Stable tag: 3. 87 Stable tag: 3.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 106 106 Test support for last WordPress version 107 107 108 = 3.9 = 109 add nonce check for terms update 110 108 111 == Upgrade Notice == 109 112
Note: See TracChangeset
for help on using the changeset viewer.