Plugin Directory

Changeset 2502843


Ignore:
Timestamp:
03/24/2021 08:02:44 PM (5 years ago)
Author:
tommasomeli
Message:

Commit Message

Location:
global-custom-fields/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • global-custom-fields/trunk/GCF.php

    r2441094 r2502843  
    33/**
    44 * Plugin Name: Global Custom Fields
    5  * Plugin URI: https://wordpress.org/plugins/global-custom-fields/
     5 * Plugin URI: https://wordpress.org/plugins/global-custom-fields
    66 * Description: Create Global Custom fields and save them into WP Options, then get them in PHP or use gcf Shortcode
    7  * Version: 1.2
     7 * Version: 1.3
    88 * Author: tommasomeli
    99 * Author URI: https://profiles.wordpress.org/tommasomeli
  • global-custom-fields/trunk/assets/functions.php

    r2439064 r2502843  
    2424function codemirror_enqueue_scripts($hook)
    2525{
    26     $cm_settings['codeEditor'] = wp_enqueue_code_editor(array('type' => 'text/css'));
    27     wp_localize_script('jquery', 'cm_settings', $cm_settings);
    28     // wp_enqueue_script('wp-theme-plugin-editor');
    29     wp_enqueue_style('wp-codemirror');
     26    // var_dump($hook);
     27    if ($hook == "toplevel_page_GCF") {
     28        $cm_settings['codeEditor'] = wp_enqueue_code_editor(array('type' => 'text/css'));
     29        wp_localize_script('jquery', 'cm_settings', $cm_settings);
     30        // wp_enqueue_script('wp-theme-plugin-editor');
     31        wp_enqueue_style('wp-codemirror');
     32    }
    3033}
    3134
  • global-custom-fields/trunk/readme.txt

    r2439064 r2502843  
    11=== Global Custom Fields ===
    22Contributors: tommasomeli
    3 Tags: gcf, global custom fields, advanced, custom, field, fields, global, php, content, groups, shortcode, shortcodes
     3Tags: gcf, global custom fields, advanced, custom, field, fields
    44Requires at least: 3.4
    5 Tested up to: 5.6
    6 Requires PHP: 5.6
    7 Stable tag: 1.2
     5Tested up to: 5.7
     6Requires PHP: 5.4
     7Stable tag: 1.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4444== Changelog ==
    4545
     46= 1.3 (25th March,2021) =
     47
     48* WP 5.7 compatibility
     49
    4650= 1.2 (14th December,2020) =
    4751
Note: See TracChangeset for help on using the changeset viewer.