Changeset 1685272
- Timestamp:
- 06/26/2017 01:11:44 AM (9 years ago)
- Location:
- nice-infoboxes/trunk
- Files:
-
- 3 edited
-
lib/plugin-api/functions.php (modified) (1 diff)
-
nice-infoboxes.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nice-infoboxes/trunk/lib/plugin-api/functions.php
r1471102 r1685272 161 161 } 162 162 163 $admin_url = get_admin_url(); 164 $site_url = get_bloginfo( 'url' ); 165 166 if ( is_ssl() ) { 167 $admin_url = str_replace( 'https://', 'http://', $admin_url ); 168 $site_url = str_replace( 'https://', 'http://', $site_url ); 169 } 170 171 $admin_path = str_replace( $site_url . '/', ABSPATH, $admin_url ); 163 // Admin path should be constructed with ABSPATH and wp-admin folder. 164 $admin_path = ABSPATH . 'wp-admin/'; 165 166 // If the standard admin path does not exist, let's try to calculate it. 167 // This is not guaranteed to work in all scenarios, specially for weird setups. 168 if ( ! is_dir( $admin_path ) ) { 169 $admin_url = get_admin_url(); 170 $site_url = get_bloginfo( 'url' ); 171 172 if ( is_ssl() ) { 173 $admin_url = str_replace( 'https://', 'http://', $admin_url ); 174 $site_url = str_replace( 'https://', 'http://', $site_url ); 175 } 176 177 $admin_path = str_replace( $site_url . '/', ABSPATH, $admin_url ); 178 } 179 172 180 $admin_path = apply_filters( 'nice_infoboxes_get_admin_path', $admin_path ); 173 181 -
nice-infoboxes/trunk/nice-infoboxes.php
r1528432 r1685272 7 7 * @license GPL-2.0+ 8 8 * @link https://nicethemes.com/product/nice-infoboxes 9 * @copyright 2016 NiceThemes9 * @copyright 2016-2017 NiceThemes 10 10 * 11 11 * @wordpress-plugin … … 13 13 * Plugin URI: https://nicethemes.com/product/nice-infoboxes 14 14 * Description: Show any kind of information in a beautiful and organized way. 15 * Version: 1.0. 115 * Version: 1.0.2 16 16 * Author: NiceThemes 17 17 * Author URI: http://nicethemes.com 18 * Contributors: nicethemes, juanfra, andrezrv , ricardoaiello18 * Contributors: nicethemes, juanfra, andrezrv 19 19 * Text Domain: nice-infoboxes 20 20 * License: GPL-2.0+ -
nice-infoboxes/trunk/readme.txt
r1549945 r1685272 3 3 Tags: infoboxes, shortcode, template-tag, services, responsive 4 4 Requires at least: 3.6 5 Tested up to: 4. 76 Stable tag: 1.0. 15 Tested up to: 4.8 6 Stable tag: 1.0.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 144 144 == Changelog == 145 145 146 = 1.0.2 = 147 * Fix: Obtain admin path using `ABSPATH` constant. 148 146 149 = 1.0.1 = 147 150 * Specify thumbnail size when obtaining images using `nice_image()`.
Note: See TracChangeset
for help on using the changeset viewer.