Plugin Directory

Changeset 2123377

Timestamp:
07/15/2019 05:30:08 PM (5 years ago)
Author:
euthelup
Message:

tagging version 0.7.1

Location:
wp-custom-body-class
Files:
3 edited
22 copied

Legend:

Unmodified
Added
Removed
  • wp-custom-body-class/tags/0.7.1/core/classes/Processor.php

    r2118841 r2123377  
    8585     */
    8686    function run() {
     87
    8788        // if the status has been generated we skip execution
    8889        if ( $this->status !== null ) {
     
    9091        }
    9192
    92         $this->status = array
    93         (
     93        $this->status = array(
    9494            'state'      => 'nominal',
    9595            'errors'     => array(),
     
    100100            $option_key = $this->meta->get( 'settings-key', null );
    101101
    102             if ( $option_key === null ) {
    103                 throw new Exception( 'Missing option_key in plugin configuration.' );
    104             }
    105 
    106102            if ( current_user_can( 'manage_options' ) && $this->form_was_submitted() ) {
    107103
    108                 wp_verify_nonce( 'wp-custom-body-class-settings-nonce', 'wp-custom-body-class-save-settings' );
     104                if( ! isset( $_POST['wp-custom-body-class-settings-nonce'] ) || ! wp_verify_nonce( $_POST['wp-custom-body-class-settings-nonce'], 'wp-custom-body-class-save-settings' ) ) {
     105                    die( '<h2>Cheatin uh?</h2>' );
     106                }
     107
     108                if ( $option_key === null ) {
     109                    throw new Exception( 'Missing option_key in plugin configuration.' );
     110                }
    109111
    110112                $input  = $this->cleanup_input( $_POST );
  • wp-custom-body-class/tags/0.7.1/custom_body_class.php

    r2118841 r2123377  
    44Plugin URI:  https://a.lup.dev
    55Description: A plugin which allows you to add a custom CSS class the HTML body tag
    6 Version: 0.7.0
     6Version: 0.7.
    77Author: Andrei Lupu
    88Author URI: https://a.lup.dev
  • wp-custom-body-class/tags/0.7.1/readme.txt

    r2118841 r2123377  
    44Requires at least: 4.9.0
    55Tested up to: 5.2.0
    6 Stable tag: 0.7.0
     6Stable tag: 0.7.
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2424== Changelog ==
    2525
    26 = 0.6.0 =
     26= 0.7.1 =
     27* Update: Check for nonce existence on settings page form.
     28
     29= 0.7.0 =
    2730* Update: Better escapes for the plugin's settings page.
    2831* Update: Modified textdomain as the plugin's name.
  • wp-custom-body-class/trunk/core/classes/Processor.php

    r2118841 r2123377  
    8585     */
    8686    function run() {
     87
    8788        // if the status has been generated we skip execution
    8889        if ( $this->status !== null ) {
     
    9091        }
    9192
    92         $this->status = array
    93         (
     93        $this->status = array(
    9494            'state'      => 'nominal',
    9595            'errors'     => array(),
     
    100100            $option_key = $this->meta->get( 'settings-key', null );
    101101
    102             if ( $option_key === null ) {
    103                 throw new Exception( 'Missing option_key in plugin configuration.' );
    104             }
    105 
    106102            if ( current_user_can( 'manage_options' ) && $this->form_was_submitted() ) {
    107103
    108                 wp_verify_nonce( 'wp-custom-body-class-settings-nonce', 'wp-custom-body-class-save-settings' );
     104                if( ! isset( $_POST['wp-custom-body-class-settings-nonce'] ) || ! wp_verify_nonce( $_POST['wp-custom-body-class-settings-nonce'], 'wp-custom-body-class-save-settings' ) ) {
     105                    die( '<h2>Cheatin uh?</h2>' );
     106                }
     107
     108                if ( $option_key === null ) {
     109                    throw new Exception( 'Missing option_key in plugin configuration.' );
     110                }
    109111
    110112                $input  = $this->cleanup_input( $_POST );
  • wp-custom-body-class/trunk/custom_body_class.php

    r2118841 r2123377  
    44Plugin URI:  https://a.lup.dev
    55Description: A plugin which allows you to add a custom CSS class the HTML body tag
    6 Version: 0.7.0
     6Version: 0.7.
    77Author: Andrei Lupu
    88Author URI: https://a.lup.dev
  • wp-custom-body-class/trunk/readme.txt

    r2118841 r2123377  
    44Requires at least: 4.9.0
    55Tested up to: 5.2.0
    6 Stable tag: 0.7.0
     6Stable tag: 0.7.
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2424== Changelog ==
    2525
    26 = 0.6.0 =
     26= 0.7.1 =
     27* Update: Check for nonce existence on settings page form.
     28
     29= 0.7.0 =
    2730* Update: Better escapes for the plugin's settings page.
    2831* Update: Modified textdomain as the plugin's name.
Note: See TracChangeset for help on using the changeset viewer.