Plugin Directory

Changeset 1574590


Ignore:
Timestamp:
01/14/2017 12:08:51 PM (9 years ago)
Author:
argonius
Message:

Merge branch 'master' of github.com:gradosevic/ag-custom-admin

Location:
ag-custom-admin/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ag-custom-admin/trunk/plugin.php

    r1545848 r1574590  
    55Description: All-in-one tool for admin panel customization. Change almost everything: admin menu, dashboard, login page, admin bar etc. Apply admin panel themes.
    66Author: WAP
    7 Version: 5.7.1
     7Version: 5.7.2
    88Text Domain: ag-custom-admin
    99Domain Path: /languages
     
    7474        $this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer');
    7575
    76         $this->agca_version = "5.7.1";
     76        $this->agca_version = "5.7.2";
    7777
    7878        //TODO:upload images programmatically
     
    9797        }
    9898        return $links;
     99    }
     100
     101    function filePath($url){
     102        $absPath = ABSPATH;
     103        $absPath = rtrim($absPath, '/');
     104        $url = ltrim($url, '/');
     105        return $absPath.'/'.$url;
    99106    }
    100107
     
    278285                }
    279286            } else {
    280                 include_once(ABSPATH . 'wp-includes/pluggable.php');
     287                include_once($this->filePath('wp-includes/pluggable.php'));
    281288                if (!is_user_logged_in() || !current_user_can('manage_options')) {
    282289                    echo !is_user_logged_in() ? __('User is not logged in.', 'ag-custom-admin').' ' : '';
     
    440447        if(is_multisite()){
    441448            if ( ! function_exists( 'is_plugin_active_for_network' ) )
    442             require_once( ABSPATH . '/wp-admin/includes/plugin.php#general-settings' );
     449            require_once($this->filePath('wp-admin/includes/plugin.php#general-settings'));
    443450           
    444451            if(!$this->isPluginActiveForNetwork($WPSPluginName)){
     
    18261833                    <?php } ?>
    18271834                    <?php if(get_option('agca_dashboard_text_paragraph')!=""){
    1828                                                         require_once(ABSPATH . 'wp-includes/formatting.php');
     1835                                                        require_once($this->filePath('wp-includes/formatting.php'));
    18291836                                        ?>
    18301837                    jQuery("#wpbody-content #dashboard-widgets-wrap").before('<div id="agca_custom_dashboard_content"></div>');
  • ag-custom-admin/trunk/readme.txt

    r1545834 r1574590  
    44Tags: admin, customize, hide, change admin, themes, admin themes, admin bar, login page
    55Requires at least: 3.0
    6 Tested up to: 4.7
     6Tested up to: 4.7.1
    77Stable tag: 5.7.1
    88License: GPLv3 or later
     
    153153== Change Log ==
    154154
     155= 5.7.2 =
     156* Fix for ABSPATH value
     157
    155158= 5.7.1 =
    156159* Added General Options tests
     
    524527== Upgrade Notice ==
    525528
     529= 5.7.2 =
     530* Fix for ABSPATH value
     531
    526532= 5.7.1 =
    527533* Added tests.
Note: See TracChangeset for help on using the changeset viewer.