Plugin Directory

Changeset 1190667


Ignore:
Timestamp:
07/01/2015 09:11:52 AM (11 years ago)
Author:
codepress
Message:

version 2.4.5

Location:
codepress-admin-columns
Files:
224 added
3 edited

Legend:

Unmodified
Added
Removed
  • codepress-admin-columns/trunk/classes/column/post/estimated-reading-time.php

    r1136036 r1190667  
    4949     */
    5050    public function convert_seconds_to_readable_time( $seconds ) {
     51        $time = '—';
    5152
    52         $minutes = floor( $seconds / 60 );
    53         $seconds = floor( $seconds % 60 );
     53        if ( $seconds ) {
    5454
    55         $time = $minutes;
    56         if ( $seconds < 10 ) {
    57             $seconds = '0' . $seconds;
    58         }
    59         if ( '00' != $seconds ) {
    60             $time .= ':' . $seconds;
    61         }
    62         if ( $minutes < 1 ) {
    63             $time = $seconds . ' ' . _n( 'second', 'seconds', $seconds, 'cpac' );
    64         }
    65         else {
    66             $time .= ' ' . _n( 'minute', 'minutes', $minutes, 'cpac' );
     55            $minutes = floor( $seconds / 60 );
     56            $seconds = floor( $seconds % 60 );
     57
     58            $time = $minutes;
     59            if ( $seconds < 10 ) {
     60                $seconds = '0' . $seconds;
     61            }
     62            if ( '00' != $seconds ) {
     63                $time .= ':' . $seconds;
     64            }
     65            if ( $minutes < 1 ) {
     66                $time = $seconds . ' ' . _n( 'second', 'seconds', $seconds, 'cpac' );
     67            }
     68            else {
     69                $time .= ' ' . _n( 'minute', 'minutes', $minutes, 'cpac' );
     70            }
    6771        }
    6872
  • codepress-admin-columns/trunk/codepress-admin-columns.php

    r1189483 r1190667  
    22/*
    33Plugin Name: Admin Columns
    4 Version: 2.4.4
     4Version: 2.4.5
    55Description: Customize columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
    66Author: AdminColumns.com
     
    3333
    3434// Plugin information
    35 define( 'CPAC_VERSION',         '2.4.4' ); // Current plugin version
     35define( 'CPAC_VERSION',         '2.4.5' ); // Current plugin version
    3636define( 'CPAC_UPGRADE_VERSION', '2.0.0' ); // Latest version which requires an upgrade
    3737define( 'CPAC_URL',             plugin_dir_url( __FILE__ ) );
  • codepress-admin-columns/trunk/readme.txt

    r1189483 r1190667  
    55Requires at least: 3.5
    66Tested up to: 4.2.2
    7 Stable tag: 2.4.4
     7Stable tag: 2.4.5
    88
    99Customise columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
     
    213213== Changelog ==
    214214
     215= 2.4.5 =
     216* [Fixed] Estimate Time Reading column will not display a value when there is no content
     217* [Fixed] When updating there was a possbile change on a "Cannot modify header information"
     218
    215219= 2.4.4 =
    216220* [Fixed] Support for custom post statuses
Note: See TracChangeset for help on using the changeset viewer.