Plugin Directory

Changeset 740505


Ignore:
Timestamp:
07/14/2013 09:09:43 AM (12 years ago)
Author:
Mike_Cowobo
Message:

Updating to 0.3.5

Location:
bp-limit-activity-length
Files:
1 added
2 edited
10 copied

Legend:

Unmodified
Added
Removed
  • bp-limit-activity-length/tags/0.3.5/bp-limit-activity-length.php

    r697791 r740505  
    44  Plugin URI: http://trenvo.com
    55  Description: Limit the maximum length of activities like Twitter
    6   Version: 0.3.4
     6  Version: 0.3.5
    77  Author: Mike Martel
    88  Author URI: http://trenvo.com
     
    1818 * @since 0.1
    1919 */
    20 define('BP_LAL_VERSION', '0.3.4');
     20define('BP_LAL_VERSION', '0.3.5');
    2121
    2222/**
     
    145145                $words = str_word_count( $stripped_content, 2 );
    146146                if ( count ( $words ) > $this->limit ) {
    147                     $word_positions = array_keys ( $words );
     147                    $word_positions = array_keys( $words );
    148148                    $last_word_position = $word_positions[$this->limit];
    149                     $content = substr($stripped_content,0,$last_word_position);
     149                    $content = mb_substr( $stripped_content, 0, $last_word_position );
    150150                }
    151151            } else {
    152                 $chars = strlen ( $stripped_content );
     152                $chars = mb_strlen( $stripped_content );
    153153                $diff = $this->limit - $chars;
    154154
    155155                if ( $diff < 0 ) {
    156                     $content = substr( $stripped_content, 0, $this->limit );
     156                    $content = mb_substr( $stripped_content, 0, $this->limit );
    157157                }
    158158            }
  • bp-limit-activity-length/tags/0.3.5/readme.txt

    r706820 r740505  
    55Requires at least: WP3.5, BP1.6
    66Tested up to:  WP3.5.1, BP1.6.3
    7 Stable tag: 0.3.4
     7Stable tag: 0.3.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3434== Changelog ==
    3535
     36=0.3.5=
     37
     38* Made the truncation count characters not bytes, so multibyte characters are counted as 1 (thanks to Jonas Knupp!)
     39
    3640=0.3.4=
    3741
  • bp-limit-activity-length/trunk/bp-limit-activity-length.php

    r697791 r740505  
    44  Plugin URI: http://trenvo.com
    55  Description: Limit the maximum length of activities like Twitter
    6   Version: 0.3.4
     6  Version: 0.3.5
    77  Author: Mike Martel
    88  Author URI: http://trenvo.com
     
    1818 * @since 0.1
    1919 */
    20 define('BP_LAL_VERSION', '0.3.4');
     20define('BP_LAL_VERSION', '0.3.5');
    2121
    2222/**
     
    145145                $words = str_word_count( $stripped_content, 2 );
    146146                if ( count ( $words ) > $this->limit ) {
    147                     $word_positions = array_keys ( $words );
     147                    $word_positions = array_keys( $words );
    148148                    $last_word_position = $word_positions[$this->limit];
    149                     $content = substr($stripped_content,0,$last_word_position);
     149                    $content = mb_substr( $stripped_content, 0, $last_word_position );
    150150                }
    151151            } else {
    152                 $chars = strlen ( $stripped_content );
     152                $chars = mb_strlen( $stripped_content );
    153153                $diff = $this->limit - $chars;
    154154
    155155                if ( $diff < 0 ) {
    156                     $content = substr( $stripped_content, 0, $this->limit );
     156                    $content = mb_substr( $stripped_content, 0, $this->limit );
    157157                }
    158158            }
  • bp-limit-activity-length/trunk/readme.txt

    r706820 r740505  
    55Requires at least: WP3.5, BP1.6
    66Tested up to:  WP3.5.1, BP1.6.3
    7 Stable tag: 0.3.4
     7Stable tag: 0.3.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3434== Changelog ==
    3535
     36=0.3.5=
     37
     38* Made the truncation count characters not bytes, so multibyte characters are counted as 1 (thanks to Jonas Knupp!)
     39
    3640=0.3.4=
    3741
Note: See TracChangeset for help on using the changeset viewer.