Plugin Directory

Changeset 2999447


Ignore:
Timestamp:
11/21/2023 09:37:42 AM (2 years ago)
Author:
cookiehub
Message:

PHP 8+ compatibility issues fixed

Location:
cookiehub/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • cookiehub/trunk/cookiehub.php

    r2999438 r2999447  
    44Plugin URI: https://www.cookiehub.com/wordpress
    55Description: Take control effortlessly with CookieHub – GDPR-compliant solution for cookie management and compliance.
    6 Version: 1.0.0
     6Version: 1.0.1
    77Author: CookieHub
    88Author URI: https://www.cookiehub.com/
  • cookiehub/trunk/includes/ch-admin.php

    r2999436 r2999447  
    5151    public function dcchub_page_init()
    5252    {   
    53         wp_register_style( 'dcchub_style', plugins_url( '/css/dcchub-admin.css?0.1', __FILE__ ));
     53        wp_register_style( 'dcchub_style', plugins_url( '/css/dcchub-admin.css?1.0', __FILE__ ));
    5454        wp_enqueue_style('dcchub_style');     
    5555        wp_register_script( 'dcchub_test', plugins_url( '/js/dcchub-test.js', __FILE__ ),  array ('jquery') ,'', false);
  • cookiehub/trunk/includes/ch-register-domain.php

    r2999436 r2999447  
    22class DCCHUBRegisterDomain
    33{
    4     public function dcchub_register_page_html() {
     4    public static function dcchub_register_page_html() {
    55        ?>
    66        <h3 class="dcchub-header page-header">Thank you for installing the CookieHub Wordpress Plugin</h3>
  • cookiehub/trunk/includes/ch-settings.php

    r2999436 r2999447  
    22class DCCHUBSettings
    33{
    4     public function dcchub_register_page_html($options) {
     4    public static function dcchub_register_page_html($options) {
    55        //Get the active tab from the $_GET param
    66        $default_tab = null;
     
    3434    }
    3535
    36     function dcchub_general_settings($options) {
     36    static function dcchub_general_settings($options) {
    3737        $assets_url = plugins_url('assets', __FILE__);
    3838        ?>
     
    8585    }
    8686
    87     function dcchub_advanced_settings($options) {
     87    static function dcchub_advanced_settings($options) {
    8888        $hasOther = (isset( $options['dcchub_other_head'] ) && $options['dcchub_other_head'] != "") || (isset( $options['dcchub_other_body'] ) && $options['dcchub_other_body'] != "");
    8989        ?>
     
    157157    }
    158158
    159     function tagsBox($sectionHead, $sectionBody, $options) {
     159    static function tagsBox($sectionHead, $sectionBody, $options) {
    160160        printf(
    161161            '<p class="dcchub-p" style="margin-top:0px;">Head</p>
  • cookiehub/trunk/includes/ch-sidebar.php

    r2999436 r2999447  
    22class DCCHUBSidebar
    33{
    4     public function sidebar() {
     4    public static function sidebar() {
    55        ?>
    66        <div class="dcchub-wrap dcchub-box side">
  • cookiehub/trunk/includes/ch-toolbar.php

    r2999436 r2999447  
    22class DCCHUBToolbar
    33{
    4     public function toolbar() {
     4    public static function toolbar() {
    55        $assets_url = plugins_url('assets', __FILE__);
    66        ?>
  • cookiehub/trunk/readme.txt

    r2999436 r2999447  
    44Requires at least: 5.2
    55Tested up to: 6.4.1
    6 Stable tag: 1.0.0
     6Stable tag: 1.0.1
    77License: GPLv2 or later
    88
Note: See TracChangeset for help on using the changeset viewer.