Plugin Directory

Changeset 1873208


Ignore:
Timestamp:
05/12/2018 01:51:10 PM (8 years ago)
Author:
mwuse
Message:

1.2.17005

Location:
mwuse/trunk
Files:
7 added
4 edited

Legend:

Unmodified
Added
Removed
  • mwuse/trunk/addons/mtw-shortcodes/mtw-shortcodes.php

    r1863744 r1873208  
    77   
    88    global $wp_query;
    9 
    109   
    1110    if( ( is_tax() || is_category() ) && !in_the_loop() )
     
    339338add_shortcode( 'mw_back_to_archive_url', 'mtw_back_to_archive_url' );
    340339
     340function mtw_define_global_authordata_if_empty()
     341{
     342    global $post;
     343    global $authordata;
     344    if( empty($authordata) )
     345    {
     346        $authordata = new WP_User( $post->post_author );
     347        return $authordata;
     348    }
     349}
    341350
    342351function mtw_author_name()
    343352{
    344     return get_the_author();
     353    global $post;
     354    mtw_define_global_authordata_if_empty();   
     355    return get_the_author_meta('display_name');
    345356}
    346357add_shortcode( 'mtw_author_name', 'mtw_author_name' );
     
    353364        'id' => false
    354365    ), $atts );
    355 
     366    mtw_define_global_authordata_if_empty();
    356367    return get_the_author_meta( $atts['key'], $atts['id'] );
    357368}
     
    363374        'size' => 32
    364375    ), $atts );
    365 
     376    mtw_define_global_authordata_if_empty();
    366377    return get_avatar( get_the_author_meta( 'ID' ), $atts['size'] );
    367378}
  • mwuse/trunk/front-style.css

    r1863744 r1873208  
    5858{
    5959    font-size: 150%;
    60     line-height: 250%;
     60    line-height: 130%;
    6161}
    6262
  • mwuse/trunk/mwuse.php

    r1865959 r1873208  
    77Text Domain: mwuse
    88Domain Path: /languages
    9 Version: 1.2.17003
     9Version: 1.2.17005
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2929    define("TTR_MW_PLUGIN_DIR", plugin_dir_path( __FILE__ ) );
    3030    define("TTR_MW_PLUGIN_URL", plugin_dir_url( __FILE__ ) );
    31     $mtw_version = '1.2.17003';
     31    $mtw_version = '1.2.17005';
    3232   
    3333
  • mwuse/trunk/readme.txt

    r1865959 r1873208  
    4343
    4444== Changelog ==
     451.2.18 (progress)
     46- Woocommerce: slide scripts not find
     47- Issue with Author info
     48- Include mtw outsourcing scripts in mwuse
     49
    45501.2.17
    4651- ZIP Upload no need sub-folder for one project
Note: See TracChangeset for help on using the changeset viewer.