Changeset 806612
- Timestamp:
- 11/19/2013 06:45:00 AM (12 years ago)
- Location:
- exifize-my-dates/trunk
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
exifize-my-dates.php (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
exifize-my-dates/trunk
- Property svn:ignore
-
old new 1 deploy.sh1 wp-deploy.sh 2 2 README.md 3 3 .git
-
- Property svn:ignore
-
exifize-my-dates/trunk/exifize-my-dates.php
r805180 r806612 4 4 Plugin URI: http://wordpress.org/extend/plugins/exifize-my-dates/ 5 5 Description: Photoblog plugin to change the published dates of a selected post type to the EXIF:capture_date of the Featured or 1st attached image of the post. 6 Version: 1. 06 Version: 1.1 7 7 Author: LBell 8 8 Author URI: http://twitter.com/lbell … … 29 29 */ 30 30 31 32 31 add_action( 'admin_menu', 'exifize_date_menu' ); 33 32 function exifize_date_menu() { … … 36 35 37 36 function exifize_my_dates() { 38 ?> 39 37 ?> 40 38 <div class=""> 41 39 <h1>EXIFize My Dates</h1> … … 44 42 45 43 if(isset($_POST['submit']) && $_POST['ptype'] != 'none') { 46 $ptype = $_POST['ptype']; 47 exifizer_nuclear_option($ptype); 48 } 44 // Check nonce if we are asked to do something... 45 if( check_admin_referer('exifize_my_dates_nuclear_nonce') ){ 46 $ptype = $_POST['ptype']; 47 exifizer_nuclear_option($ptype); 48 } else { 49 wp_die( 'What are you doing, Dave? (Invalid Request)' ); 50 } 51 } 49 52 50 53 $args=array( … … 70 73 <p>Choose the post type who's dates you want to change:</p> 71 74 <form name="input" action="<?php $_SERVER['PHP_SELF'];?>" method="post"> 75 <?php 76 if ( function_exists('wp_nonce_field') ) wp_nonce_field('exifize_my_dates_nuclear_nonce'); 77 ?> 78 72 79 <select name="ptype"> 73 80 <option value="none">None</option> … … 90 97 91 98 function exifizer_nuclear_option($ptype){ 99 if ( ! current_user_can( 'manage_options' ) ) 100 wp_die( 'What are you doing, Dave? (Insufficient Capability)' ); 101 92 102 echo "<h2>Working...</h2>"; 93 103 -
exifize-my-dates/trunk/readme.txt
r805180 r806612 5 5 Requires at least: 3.0 6 6 Tested up to: 3.7.1 7 Stable tag: 1. 07 Stable tag: 1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 48 48 == Changelog == 49 49 50 = 1.1 = 51 * Added security features to keep others from meddl'n with your affairs 52 50 53 = 1.0 = 51 54 * After a year of safe use on many blogs, I declare this plugin stable! (Or if anyone has had issues, they sure haven't talked to me about it)
Note: See TracChangeset
for help on using the changeset viewer.