Plugin Directory

Changeset 1965312


Ignore:
Timestamp:
10/29/2018 06:50:22 PM (7 years ago)
Author:
Friese
Message:

Bugfixes

Location:
wp-visitorflow
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • wp-visitorflow/trunk/includes/classes/class-wp-visitorflow-admin.php

    r1961151 r1965312  
    3939            // Add plugin settings link to plugins list
    4040            add_filter( 'plugin_action_links', array('WP_VisitorFlow_Admin', 'addSettingsLink'), 10, 2);
    41 
    42             // Translations
    43             add_action( 'init', array('WP_VisitorFlow_Admin', 'internationalization') );
    4441
    4542            // Add hook to posts table
     
    115112
    116113
    117 
    118     /**
    119      * Load Textdomain
    120      */
    121     public static function internationalization()
    122     {
    123         $res = load_plugin_textdomain(
    124             'wp-visitorflow',
    125             false,
    126             dirname( plugin_basename( __FILE__ ) ) . '/../../languages/'
    127         );
    128     }
    129 
    130 
    131114    /**
    132115     * Add plugin's settings to plugins list
     
    176159     * Get time difference in words
    177160     **/
    178     function getNiceTimeDifference( $datetime1, $datetime2 ) {
     161    public static function getNiceTimeDifference( $datetime1, $datetime2 ) {
    179162        $date1 = new DateTime($datetime1);
    180163        $date2 = new DateTime($datetime2);
  • wp-visitorflow/trunk/includes/classes/class-wp-visitorflow-database.php

    r1961151 r1965312  
    289289     * @return boolean
    290290     **/
    291     public function getData( $date = false ) {
     291    public static function getData( $date = false ) {
    292292        // No $date? Use today
    293293        if (! $date) {
  • wp-visitorflow/trunk/includes/classes/class-wp-visitorflow-maintenance.php

    r1961151 r1965312  
    8282     * @return boolean
    8383     **/
    84     public function aggregateDataPerDay( $date = false ) {
     84    public static function aggregateDataPerDay( $date = false ) {
    8585        if ( ! $date ) { return false; }
    8686
  • wp-visitorflow/trunk/readme.txt

    r1961204 r1965312  
    55Requires at least: 3.5
    66Tested up to:  4.9.8
    7 Stable tag: 1.5.1
     7Stable tag: 1.5.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • wp-visitorflow/trunk/wp-visitorflow.php

    r1961185 r1965312  
    44 * Plugin URI: https://www.datacodedesign.de/index.php/wp-visitorflow/
    55 * Description: Detailed web analytics and visualization of your website's visitor flow
    6  * Version: 1.5.1
    7  * Author: Onno Gabriel/DataCodeDesign
     6 * Version: 1.5.2
     7 * Author: Onno Gabriel, DataCodeDesign
    88 * Author URI: http://www.onno-gabriel.de
    99 * License: GPL2
     
    121121if ( is_admin() ) {
    122122
     123    // Translations
     124    function wp_visitorflow_internationalization()
     125    {
     126        $res = load_plugin_textdomain(
     127            'wp-visitorflow',
     128            false,
     129            dirname( plugin_basename( __FILE__ ) ) . '/languages/'
     130        );
     131    }
     132    add_action( 'init', 'wp_visitorflow_internationalization' );
     133
     134
    123135    // Check if update finished correctly
    124136    if ( get_option('wp_visitorflow_plugin_version') != WP_VISITORFLOW_VERSION ) {
Note: See TracChangeset for help on using the changeset viewer.