Changeset 2052979
- Timestamp:
- 03/18/2019 10:54:12 PM (7 years ago)
- Location:
- force-delete-posts/trunk
- Files:
-
- 1 added
- 2 edited
-
README.md (added)
-
index.php (modified) (6 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
force-delete-posts/trunk/index.php
r1811288 r2052979 4 4 Plugin URI: https://github.com/liamstewart23/WordPressForceDeletePosts 5 5 Description: Adds the ability for administrators to instantly delete posts by skipping the trash. 6 Version: 1. 0.06 Version: 1.1.0 7 7 Author: Liam Stewart 8 8 Author URI: https://liamstewart.ca … … 10 10 11 11 /** 12 * WordPress Version 4.0 or greater12 * Post List Styles 13 13 */ 14 $requiredVersion = "3.5";15 if (version_compare(get_bloginfo('version'), $requiredVersion, '<')) {16 wp_die("<h1>You must update WordPress to use this plugin! </h1><br>17 You are currently running WordPress version <strong>" . get_bloginfo('version') . "</strong><br> This plugin requires <strong>" . $requiredVersion . "</strong> or greater");18 }19 20 14 function ls_fd_column_width() 21 15 { 22 16 echo '<style type="text/css">'; 23 17 echo '.column-ls_fd_column { text-align: center; width:60px !important; overflow:hidden }';// Custom Column styles 24 echo '.ls_plfi_icon {height:12px;width:12px;border-radius:50%;}';// Circle icon styles25 18 echo '.ls_plfi_label {justify-content:center;display:flex;}'; 26 19 echo '</style>'; … … 32 25 * @param $defaults 33 26 * @return mixed 27 * Adding column to post list. 34 28 */ 35 29 function ls_fd_columns_head($defaults) … … 42 36 * @param $column_name 43 37 * @param $post_ID 38 * Adding column icon. 44 39 */ 45 40 function ls_fd_columns_content($column_name, $post_ID) 46 41 { 47 if ($column_name === 'ls_fd_column') {// If column exists 42 // If column exists 43 if ($column_name === 'ls_fd_column') { 48 44 ls_fd_force_delete('<span class="dashicons dashicons-trash"></span>'); 49 45 } … … 60 56 /** 61 57 * @param string $link 58 * Delete Post 62 59 */ 63 60 function ls_fd_force_delete($link = '<span class="dashicons dashicons-trash"></span>') … … 74 71 /** 75 72 * @param $post_id 73 * Delete post attachments 76 74 */ 77 75 function ls_fd_remove_attachment($post_id) -
force-delete-posts/trunk/readme.txt
r1811289 r2052979 1 1 === Force Delete Posts === 2 2 Contributors: gingeds 3 Tags: force, delete, posts, post, trash, skip , insta, fast4 Requires at least: 3.55 Tested up to: 4.9.13 Tags: force, delete, posts, post, trash, skip 4 Requires at least: 4.0.0 5 Tested up to: 5.1.1 6 6 Requires PHP: 5.5 7 7 Stable tag: trunk
Note: See TracChangeset
for help on using the changeset viewer.