Plugin Directory

Changeset 1685272


Ignore:
Timestamp:
06/26/2017 01:11:44 AM (9 years ago)
Author:
andrezrv
Message:

Preparing for 1.0.2 release

Location:
nice-infoboxes/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • nice-infoboxes/trunk/lib/plugin-api/functions.php

    r1471102 r1685272  
    161161    }
    162162
    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
    172180    $admin_path = apply_filters( 'nice_infoboxes_get_admin_path', $admin_path );
    173181
  • nice-infoboxes/trunk/nice-infoboxes.php

    r1528432 r1685272  
    77 * @license   GPL-2.0+
    88 * @link      https://nicethemes.com/product/nice-infoboxes
    9  * @copyright 2016 NiceThemes
     9 * @copyright 2016-2017 NiceThemes
    1010 *
    1111 * @wordpress-plugin
     
    1313 * Plugin URI:        https://nicethemes.com/product/nice-infoboxes
    1414 * Description:       Show any kind of information in a beautiful and organized way.
    15  * Version:           1.0.1
     15 * Version:           1.0.2
    1616 * Author:            NiceThemes
    1717 * Author URI:        http://nicethemes.com
    18  * Contributors:      nicethemes, juanfra, andrezrv, ricardoaiello
     18 * Contributors:      nicethemes, juanfra, andrezrv
    1919 * Text Domain:       nice-infoboxes
    2020 * License:           GPL-2.0+
  • nice-infoboxes/trunk/readme.txt

    r1549945 r1685272  
    33Tags: infoboxes, shortcode, template-tag, services, responsive
    44Requires at least: 3.6
    5 Tested up to: 4.7
    6 Stable tag: 1.0.1
     5Tested up to: 4.8
     6Stable tag: 1.0.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    144144== Changelog ==
    145145
     146= 1.0.2 =
     147* Fix: Obtain admin path using `ABSPATH` constant.
     148
    146149= 1.0.1 =
    147150* Specify thumbnail size when obtaining images using `nice_image()`.
Note: See TracChangeset for help on using the changeset viewer.