Making WordPress.org

Changeset 5274


Ignore:
Timestamp:
04/06/2017 11:09:37 PM (8 years ago)
Author:
coffee2code
Message:

Plugin Directory, Author Card: Prevent redundant tooltip text for plugins not updated in over two years.

For such plugins, "Plugin is open but has not been updated in more than two years." does not need supplemented with "Plugin is open.".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-author-card.php

    r5273 r5274  
    173173                            $note       = true;
    174174                            $tooltips[] = 'Plugin is approved, but has no data.';
     175                        } elseif ( strtotime( '-2 years' ) > strtotime( $last_updated ) ) {
     176                            $tooltips[] = 'Plugin is open but has not been updated in more than two years.';
     177                            $classes[]  = 'profile-plugin-open-old';
    175178                        } else {
    176179                            $tooltips[] = 'Plugin is open.';
    177180                        }
    178181                        $classes[]      = 'profile-plugin-open';
    179 
    180                         if ( strtotime( '-2 years' ) > strtotime( $last_updated ) ) {
    181                             $tooltips[] = 'Plugin is open, but has not been updated in more than two years.';
    182                             $classes[]  = 'profile-plugin-open-old';
    183                         }
    184182                    }
    185183
Note: See TracChangeset for help on using the changeset viewer.