Plugin Directory

Changeset 3102999


Ignore:
Timestamp:
06/15/2024 08:27:34 AM (20 months ago)
Author:
jamesdlow
Message:

1.4.8

  • Remove code that deletes meta on move to trash as this was not working anyway and we may want to restore if restored from trash
Location:
css-js-files
Files:
7 added
2 edited

Legend:

Unmodified
Added
Removed
  • css-js-files/trunk/css-js-files.php

    r3077365 r3102999  
    44Plugin URI: https://wordpress.org/plugins/css-js-files/
    55Description: Add CSS files and/or CSS custom rules to any single page or post or globally
    6 Version: 1.4.7
     6Version: 1.4.8
    77Author: James Low
    88Author URI: http://jameslow.com
     
    2727        add_action('wp_footer', array('CSS_JS_Files', 'wp_footer'));
    2828        /* Delete options when post is deleted */
    29         add_action('delete_post', array('CSS_JS_Files', 'delete_post'));
     29        //add_action('delete_post', array('CSS_JS_Files', 'delete_post'));
    3030        /* Delete all options when the plugin is uninstalling */
    3131        //register_uninstall_hook(plugin_dir_path( __FILE__ ).'uninstall.php', 'uninstall');
     
    287287    public static function delete_post() {
    288288        global $post;
    289         if ('trash' == get_post_status($post_id)) {
     289        if ('trash' == get_post_status($post)) {
    290290            delete_post_meta($post->ID, 'css_js_files_css_links');
    291291            delete_post_meta($post->ID, 'css_js_files_css_files');
  • css-js-files/trunk/readme.txt

    r3077365 r3102999  
    55Requires at least: 3.0
    66Tested up to: 6.0.1
    7 Stable tag: 1.4.7
     7Stable tag: 1.4.8
    88License: MIT Licens
    99License URI: https://opensource.org/licenses/MIT
     
    2929
    3030== Changelog ==
     31
     32= 1.4.8 =
     33* Remove code that deletes meta on move to trash as this was not working anyway and we may want to restore if restored from trash
    3134
    3235= 1.4.7 =
Note: See TracChangeset for help on using the changeset viewer.