Plugin Directory

Changeset 2052979


Ignore:
Timestamp:
03/18/2019 10:54:12 PM (7 years ago)
Author:
gingeds
Message:

Update to version 1.1.0 from GitHub

Location:
force-delete-posts/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • force-delete-posts/trunk/index.php

    r1811288 r2052979  
    44Plugin URI: https://github.com/liamstewart23/WordPressForceDeletePosts
    55Description: Adds the ability for administrators to instantly delete posts by skipping the trash.
    6 Version: 1.0.0
     6Version: 1.1.0
    77Author: Liam Stewart
    88Author URI: https://liamstewart.ca
     
    1010
    1111/**
    12  * WordPress Version 4.0 or greater
     12 * Post List Styles
    1313 */
    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 
    2014function ls_fd_column_width()
    2115{
    2216    echo '<style type="text/css">';
    2317    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 styles
    2518    echo '.ls_plfi_label {justify-content:center;display:flex;}';
    2619    echo '</style>';
     
    3225 * @param $defaults
    3326 * @return mixed
     27 * Adding column to post list.
    3428 */
    3529function ls_fd_columns_head($defaults)
     
    4236 * @param $column_name
    4337 * @param $post_ID
     38 * Adding column icon.
    4439 */
    4540function ls_fd_columns_content($column_name, $post_ID)
    4641{
    47     if ($column_name === 'ls_fd_column') {// If column exists
     42    // If column exists
     43    if ($column_name === 'ls_fd_column') {
    4844        ls_fd_force_delete('<span class="dashicons dashicons-trash"></span>');
    4945    }
     
    6056/**
    6157 * @param string $link
     58 * Delete Post
    6259 */
    6360function ls_fd_force_delete($link = '<span class="dashicons dashicons-trash"></span>')
     
    7471/**
    7572 * @param $post_id
     73 * Delete post attachments
    7674 */
    7775function ls_fd_remove_attachment($post_id)
  • force-delete-posts/trunk/readme.txt

    r1811289 r2052979  
    11=== Force Delete Posts ===
    22Contributors: gingeds
    3 Tags: force, delete, posts, post, trash, skip, insta, fast
    4 Requires at least: 3.5
    5 Tested up to: 4.9.1
     3Tags: force, delete, posts, post, trash, skip
     4Requires at least: 4.0.0
     5Tested up to: 5.1.1
    66Requires PHP: 5.5
    77Stable tag: trunk
Note: See TracChangeset for help on using the changeset viewer.