Plugin Directory

Changeset 1408035


Ignore:
Timestamp:
04/30/2016 11:30:20 AM (10 years ago)
Author:
Devtard
Message:

Tagging version 1.2

Location:
automatic-post-date-filler
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • automatic-post-date-filler/tags/1.2/automatic-post-date-filler.php

    r1194958 r1408035  
    44Plugin URI: https://wordpress.org/plugins/automatic-post-date-filler/
    55Description: Automatically sets custom date and time when editing posts.
    6 Version: 1.1
     6Version: 1.2
    77Author: Devtard
    88Author URI: http://devtard.com
     
    1212
    1313/*
    14 Copyright (C) 2013-2015  Devtard (gmail.com ID: devtard)
     14Copyright (C) 2013-2016  Devtard (gmail.com ID: devtard)
    1515
    1616This program is free software: you can redistribute it and/or modify
     
    910910            }
    911911            if(array_key_exists('day', $calculated_timestamp)){
    912                 $css_items['day'] = '[name=jj]';
     912                $css_items['day'] = 'input[name=jj]';
    913913                $jquery_items['day'] = 'jQuery("input[name=jj]").val("'. $calculated_timestamp['day'] .'");';
    914914            }
    915915            if(array_key_exists('year', $calculated_timestamp)){
    916                 $css_items['year'] = '[name=aa]';
     916                $css_items['year'] = 'input[name=aa]';
    917917                $jquery_items['year'] = 'jQuery("input[name=aa]").val("'. $calculated_timestamp['year'] .'");';
    918918            }
    919919            if(array_key_exists('hour', $calculated_timestamp)){
    920                 $css_items['hour'] = '[name=hh]';
     920                $css_items['hour'] = 'input[name=hh]';
    921921                $jquery_items['hour'] = 'jQuery("input[name=hh]").val("'. $calculated_timestamp['hour'] .'");';
    922922            }
    923923            if(array_key_exists('minute', $calculated_timestamp)){
    924                 $css_items['minute'] = '[name=mn]';
     924                $css_items['minute'] = 'input[name=mn]';
    925925                $jquery_items['minute'] = 'jQuery("input[name=mn]").val("'. $calculated_timestamp['minute'] .'");';
    926926            }
     
    933933                <script type="text/javascript">
    934934                    jQuery(document).ready(function(){
    935                         jQuery("a[href=#edit_timestamp].edit-timestamp").click(function(){<?php echo $jquery_string; ?>});
     935                        jQuery("a[href$='#edit_timestamp']").click(function(){<?php echo $jquery_string; ?>});
    936936                    });
    937937                </script>
  • automatic-post-date-filler/tags/1.2/readme.txt

    r1194892 r1408035  
    55Requires at least: 3.0
    66Tested up to: 4.3
    7 Stable tag: 1.1
     7Stable tag: 1.2
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    4343
    4444== Upgrade Notice ==
     45= 1.2 =
     46* jQuery version incompatibility fixed
     47
    4548= 1.1 =
    4649* New features
  • automatic-post-date-filler/trunk/automatic-post-date-filler.php

    r1194958 r1408035  
    44Plugin URI: https://wordpress.org/plugins/automatic-post-date-filler/
    55Description: Automatically sets custom date and time when editing posts.
    6 Version: 1.1
     6Version: 1.2
    77Author: Devtard
    88Author URI: http://devtard.com
     
    1212
    1313/*
    14 Copyright (C) 2013-2015  Devtard (gmail.com ID: devtard)
     14Copyright (C) 2013-2016  Devtard (gmail.com ID: devtard)
    1515
    1616This program is free software: you can redistribute it and/or modify
     
    910910            }
    911911            if(array_key_exists('day', $calculated_timestamp)){
    912                 $css_items['day'] = '[name=jj]';
     912                $css_items['day'] = 'input[name=jj]';
    913913                $jquery_items['day'] = 'jQuery("input[name=jj]").val("'. $calculated_timestamp['day'] .'");';
    914914            }
    915915            if(array_key_exists('year', $calculated_timestamp)){
    916                 $css_items['year'] = '[name=aa]';
     916                $css_items['year'] = 'input[name=aa]';
    917917                $jquery_items['year'] = 'jQuery("input[name=aa]").val("'. $calculated_timestamp['year'] .'");';
    918918            }
    919919            if(array_key_exists('hour', $calculated_timestamp)){
    920                 $css_items['hour'] = '[name=hh]';
     920                $css_items['hour'] = 'input[name=hh]';
    921921                $jquery_items['hour'] = 'jQuery("input[name=hh]").val("'. $calculated_timestamp['hour'] .'");';
    922922            }
    923923            if(array_key_exists('minute', $calculated_timestamp)){
    924                 $css_items['minute'] = '[name=mn]';
     924                $css_items['minute'] = 'input[name=mn]';
    925925                $jquery_items['minute'] = 'jQuery("input[name=mn]").val("'. $calculated_timestamp['minute'] .'");';
    926926            }
     
    933933                <script type="text/javascript">
    934934                    jQuery(document).ready(function(){
    935                         jQuery("a[href=#edit_timestamp].edit-timestamp").click(function(){<?php echo $jquery_string; ?>});
     935                        jQuery("a[href$='#edit_timestamp']").click(function(){<?php echo $jquery_string; ?>});
    936936                    });
    937937                </script>
  • automatic-post-date-filler/trunk/readme.txt

    r1194892 r1408035  
    55Requires at least: 3.0
    66Tested up to: 4.3
    7 Stable tag: 1.1
     7Stable tag: 1.2
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    4343
    4444== Upgrade Notice ==
     45= 1.2 =
     46* jQuery version incompatibility fixed
     47
    4548= 1.1 =
    4649* New features
Note: See TracChangeset for help on using the changeset viewer.