Changeset 1574590
- Timestamp:
- 01/14/2017 12:08:51 PM (9 years ago)
- Location:
- ag-custom-admin/trunk
- Files:
-
- 2 edited
-
plugin.php (modified) (6 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ag-custom-admin/trunk/plugin.php
r1545848 r1574590 5 5 Description: All-in-one tool for admin panel customization. Change almost everything: admin menu, dashboard, login page, admin bar etc. Apply admin panel themes. 6 6 Author: WAP 7 Version: 5.7. 17 Version: 5.7.2 8 8 Text Domain: ag-custom-admin 9 9 Domain Path: /languages … … 74 74 $this->colorizer = $this->jsonMenuArray(get_option('ag_colorizer_json'),'colorizer'); 75 75 76 $this->agca_version = "5.7. 1";76 $this->agca_version = "5.7.2"; 77 77 78 78 //TODO:upload images programmatically … … 97 97 } 98 98 return $links; 99 } 100 101 function filePath($url){ 102 $absPath = ABSPATH; 103 $absPath = rtrim($absPath, '/'); 104 $url = ltrim($url, '/'); 105 return $absPath.'/'.$url; 99 106 } 100 107 … … 278 285 } 279 286 } else { 280 include_once( ABSPATH . 'wp-includes/pluggable.php');287 include_once($this->filePath('wp-includes/pluggable.php')); 281 288 if (!is_user_logged_in() || !current_user_can('manage_options')) { 282 289 echo !is_user_logged_in() ? __('User is not logged in.', 'ag-custom-admin').' ' : ''; … … 440 447 if(is_multisite()){ 441 448 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')); 443 450 444 451 if(!$this->isPluginActiveForNetwork($WPSPluginName)){ … … 1826 1833 <?php } ?> 1827 1834 <?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')); 1829 1836 ?> 1830 1837 jQuery("#wpbody-content #dashboard-widgets-wrap").before('<div id="agca_custom_dashboard_content"></div>'); -
ag-custom-admin/trunk/readme.txt
r1545834 r1574590 4 4 Tags: admin, customize, hide, change admin, themes, admin themes, admin bar, login page 5 5 Requires at least: 3.0 6 Tested up to: 4.7 6 Tested up to: 4.7.1 7 7 Stable tag: 5.7.1 8 8 License: GPLv3 or later … … 153 153 == Change Log == 154 154 155 = 5.7.2 = 156 * Fix for ABSPATH value 157 155 158 = 5.7.1 = 156 159 * Added General Options tests … … 524 527 == Upgrade Notice == 525 528 529 = 5.7.2 = 530 * Fix for ABSPATH value 531 526 532 = 5.7.1 = 527 533 * Added tests.
Note: See TracChangeset
for help on using the changeset viewer.