WordPress.org

Plugin Directory

Changeset 478111


Ignore:
Timestamp:
12/20/11 18:38:04 (2 years ago)
Author:
ericmann
Message:

Updating to and releasing v1.1.

Location:
wp-core-contributions-widget
Files:
12 added
4 edited

Legend:

Unmodified
Added
Removed
  • wp-core-contributions-widget/trunk/lib/class.wp-core-contributions-widget.php

    r473970 r478111  
    1616        if ( ! isset( $instance[ 'display-count' ] ) ) $instance[ 'display-count' ] = 5; 
    1717 
    18         if ( $instance ) { 
     18        if ( $instance && isset( $instance[ 'title' ] ) ) { 
    1919            $title = esc_attr( $instance[ 'title' ] ); 
     20        } else { 
     21            $title = __( 'WP Core Contributions', 'wp-core-contributions-widget' ); 
     22        } 
     23         
     24        if ( $instance && isset( $instance[ 'trac-user' ] ) ) { 
    2025            $tracUser = esc_attr( $instance[ 'trac-user' ] ); 
     26        } else { 
     27            $tracUser = __( 'Trac Username', 'wp-core-contributions-widget' ); 
     28        } 
     29         
     30        if ( $instance && isset( $instance[ 'display-count' ] ) ) { 
    2131            $tracCount = esc_attr( $instance[ 'display-count' ] ); 
    2232        } else { 
    23             $title = __( 'WP Core Contributions', 'wp-core-contributions-widget' ); 
    24             $tracUser = __( 'Trac Username', 'wp-core-contributions-widget' ); 
    2533            $tracCount = 5; 
    2634        } 
  • wp-core-contributions-widget/trunk/lib/class.wp-core-contributions.php

    r473970 r478111  
    2323            $results = wp_remote_retrieve_body(wp_remote_get('https://core.trac.wordpress.org/search?q=props+' . $username . '&noquickjump=1&changeset=on', array('sslverify'=>false))); 
    2424 
    25             $pattern = '/<dt><a href="(.*?)" class="searchable">\[(.*?)\]: ((?s).*?)<\/a><\/dt>\n\s*(<dd class="searchable">.*\n?.*ixes #(.*?)\n?<\/dd>)?/'; 
     25            $pattern = '/<dt><a href="(.*?)" class="searchable">\[(.*?)\]: ((?s).*?)<\/a><\/dt>\n\s*(<dd class="searchable">.*\n?.*(?:ixes|ee) #(.*?)\n?<\/dd>)?/'; 
    2626 
    2727            preg_match_all($pattern, $results, $matches, PREG_SET_ORDER); 
  • wp-core-contributions-widget/trunk/readme.txt

    r473986 r478111  
    55Requires at least: 3.2.1 
    66Tested up to: 3.3 
    7 Stable tag: 1.0 
     7Stable tag: 1.1 
    88 
    99Add a list of your accepted contributions to WordPress Core as a sidebar widget. 
     
    4848== Changelog == 
    4949 
     50= 1.1 = 
     51* Update regex to support matching "see #{ticket}" 
     52* Fix undefined index warnings on first activation 
     53 
    5054= 1.0 = 
    5155* Update translations 
  • wp-core-contributions-widget/trunk/wp-core-contributions-widget.php

    r473970 r478111  
    44Plugin URI: http://jumping-duck.com/wordpress 
    55Description: Add a list of your accepted contributions to WordPress Core as a sidebar widget. 
    6 Version: 1.0 
     6Version: 1.1 
    77Author: Eric Mann 
    88Author URI: http://eamann.com 
Note: See TracChangeset for help on using the changeset viewer.