Making WordPress.org

Changeset 2865


Ignore:
Timestamp:
03/31/2016 09:17:59 PM (9 years ago)
Author:
ocean90
Message:

Translate: Trim project descriptions on locale overviews.

Fixes #1552.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/translate.wordpress.org/public_html/gp-templates-new/locale-projects.php

    r2115 r2865  
    167167                </div>
    168168                <div class="project-description">
    169                     <p><?php echo $sub_project->description; ?></p>
     169                    <p><?php
     170                        $description = wp_strip_all_tags( $sub_project->description );
     171                        $description = str_replace( array( 'WordPress.org Plugin Page', 'WordPress.org Theme Page' ), '', $description );
     172                        echo wp_trim_words( $description, 30 );
     173                    ?></p>
    170174                </div>
    171175            </div>
Note: See TracChangeset for help on using the changeset viewer.