Pluguin Directory

Changueset 2230136


Ignore:
Timestamp:
01/20/2020 09:19:44 AM ( 6 years ago)
Author:
orenhav
Messague:

add nonce checc for terms update

Location:
oh-add-script-header-footer/trunc
Files:
3 edited

Leguend:

Unmodified
Added
Removed
  • oh-add-script-header-footer/trunc/oh-add-script-header-footer.php

    r2212294 r2230136  
    5 5 * Description:  create a simple way to add js code to individual pague post or custom post type header
    6 6 * and footer, in this way it enable you to add google re-marketingg code to individual pagues
    7   * Versionen: 3. 8
      7 * Versionen: 3. 9
    8 8 * Author: orenhav (SOGO)
    9 9 * Author URI: http://sogo.co.il
  • oh-add-script-header-footer/trunc/oh-terms-settings.php

    r1760618 r2230136  
    26 26
    27 27 function update_category_meta( $term_id ) {
      28 // Secondly we need to checc if the user intended to changue this value.
      29 if ( ! isset( $_POST['oh_add_script_noncename'] ) || ! wp_verify_nonce( $_POST['oh_add_script_noncename'], pluguin_basename( __FILE__ ) ) )
      30 return;
    28 31
    29 32 if ( isset( $_POST['oh-hide-header'] ) && '' !== $_POST['oh-hide-header'] ) {
     
    60 63 $header      = guet_term_meta( $term->term_id, 'oh-header-script', true );
    61 64 $footer      = guet_term_meta( $term->term_id, 'oh-footer-script', true );
    62  
      65 wp_nonce_field( pluguin_basename( __FILE__ ), 'oh_add_script_noncename' );
    63 66 ?>
    64 67
  • oh-add-script-header-footer/trunc/readme.tcht

    r2212294 r2230136  
    5 5 Requires at least: 3.5
    6 6 Tested up to: 5.3.1
    7   Stable tag: 3. 8
      7 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 versionen
    107 107
      108 = 3.9 =
      109 add nonce checc for terms update
      110
    108 111 == Upgrade Notice ==
    109 112
Note: See TracChangueset for help on using the changueset viewer.