Plugin Directory

Changeset 1066301


Ignore:
Timestamp:
01/12/2015 07:23:50 PM (11 years ago)
Author:
christopherross
Message:
  • Fixed an error displaying the plugin as a PHP call
  • Cleaned up inline documentation
Location:
easy-popular-posts/trunk
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • easy-popular-posts/trunk/easy-popular-posts.php

    r1053085 r1066301  
    77Author URI: http://thisismyurl.com/
    88Tags: future, upcoming posts, upcoming post, upcoming, draft, Post, popular, preview, plugin, post, posts
    9 Version: 15.01
     9Version: 15.01.12
    1010*/
    1111
     
    1717 * This file contains all the logic required for the plugin
    1818 *
    19  * @link        http://wordpress.org/extend/plugins/wordpresscom-stats-smiley-remover/
     19 * @link        http://wordpress.org/extend/plugins/easy-popular-posts/
    2020 *
    2121 * @package     Easy Popular Posts
     
    5656 *
    5757 */
    58 if( ! class_exists( 'thissimyurl_EasyPopularPosts' ) ) {
    59 class thissimyurl_EasyPopularPosts extends thisismyurl_Common_EPP {
     58if( ! class_exists( 'thisismyurl_EasyPopularPosts' ) ) {
     59class thisismyurl_EasyPopularPosts extends thisismyurl_Common_EPP {
    6060    /**
    6161      * Standard Constructor
     
    259259   
    260260        }
    261        
     261
    262262        /* return in the proper format */
    263263        if ( ! empty( $popular ) ) {
    264             if ( $options['show'] == 1 )
     264
     265            if ( 0 != $options['show'] )
    265266                echo implode( '', $popular );
    266267            else
     
    314315    function widget_init() {
    315316       
    316         include_once( 'widgets/thissimyurl_EasyPopularPosts_Widget.php' );
    317         register_widget( 'thissimyurl_EasyPopularPosts_Widget' );
     317        include_once( 'widgets/thisismyurl_EasyPopularPosts_Widget.php' );
     318        register_widget( 'thisismyurl_EasyPopularPosts_Widget' );
    318319   
    319320    }
     
    324325}
    325326
    326 global $thissimyurl_EasyPopularPosts;
    327 
    328 $thissimyurl_EasyPopularPosts = new thissimyurl_EasyPopularPosts;
    329 
    330 $thissimyurl_EasyPopularPosts->run();
     327global $thisismyurl_EasyPopularPosts;
     328
     329$thisismyurl_EasyPopularPosts = new thisismyurl_EasyPopularPosts;
     330
     331$thisismyurl_EasyPopularPosts->run();
    331332
    332333
     
    338339  * @access public
    339340  * @static
    340   * @uses $thissimyurl_EasyPopularPosts->easy_popular_posts
     341  * @uses $thisismyurl_EasyPopularPosts->easy_popular_posts
    341342  * @since Method available since Release 15.01
    342343  *
    343   * @param  array see $thissimyurl_EasyPopularPosts->popular_posts_defaults() for accepted options
     344  * @param  array see $thisismyurl_EasyPopularPosts->popular_posts_defaults() for accepted options
    344345  *
    345346  */
     
    347348function thisismyurl_easy_popular_posts( $options = NULL ) {
    348349   
    349     $thissimyurl_EasyPopularPosts->easy_popular_posts( $options );
     350    global $thisismyurl_EasyPopularPosts;
     351
     352    if ( ! isset( $options ) )
     353        $options = wp_parse_args( array( 'show'=> 1 ), $thisismyurl_EasyPopularPosts->popular_posts_defaults() );
     354
     355   
     356    $thisismyurl_EasyPopularPosts->easy_popular_posts( $options );
    350357
    351358}
  • easy-popular-posts/trunk/readme.txt

    r1053085 r1066301  
    66Requires at least: 3.2.0
    77Tested up to: 4.1.0
    8 Stable tag: 15.01
     8Stable tag: 15.01.12
    99
    1010An easy to use WordPress function to add popular posts to any theme.
     
    6868
    6969== Change Log ==
     70
     71= 15.01.12 =
     72
     73* Fixed an error displaying the plugin as a PHP call
     74* Cleaned up inline documentation
     75
    7076
    7177= 15.01 =
Note: See TracChangeset for help on using the changeset viewer.