Plugin Directory

Changeset 1095315


Ignore:
Timestamp:
02/20/2015 05:06:07 PM (11 years ago)
Author:
iluminatus
Message:

Replacing mysql_real_escape_string with htmlspecialchars for compatibility with some PHP configurations. Tested compatibility with WP 4.1.1

Location:
network-latest-posts/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • network-latest-posts/trunk/js/nlposts_shortcode_form.php

    r625323 r1095315  
    2727    $path = false;
    2828    // Check multiple levels, until find the config file
    29     if (@file_exists(dirname(dirname($base))."/wp-config.php")){
     29    if (@file_exists(dirname(dirname($base))."/wp-load.php")){
    3030        $path = dirname(dirname($base));
    31     } elseif (@file_exists(dirname(dirname(dirname($base)))."/wp-config.php")) {
     31    } elseif (@file_exists(dirname(dirname(dirname($base)))."/wp-load.php")) {
    3232        $path = dirname(dirname(dirname($base)));
    33     } elseif (@file_exists(dirname(dirname(dirname(dirname($base))))."/wp-config.php")) {
     33    } elseif (@file_exists(dirname(dirname(dirname(dirname($base))))."/wp-load.php")) {
    3434        $path = dirname(dirname(dirname(dirname($base))));
    35     } elseif (@file_exists(dirname(dirname(dirname(dirname(dirname($base)))))."/wp-config.php")) {
     35    } elseif (@file_exists(dirname(dirname(dirname(dirname(dirname($base)))))."/wp-load.php")) {
    3636        $path = dirname(dirname(dirname(dirname(dirname($base)))));
    3737    } else {
  • network-latest-posts/trunk/network-latest-posts-widget.php

    r925270 r1095315  
    22/*
    33    Network Latest Posts Widget
    4     Version 3.5.6
     4    Version 3.6.1
    55    Author L'Elite
    66    Author URI http://laelite.info/
     
    104104                } else {
    105105                    // Scape the string (trying to minimize injection risks
    106                     $instance['blog_id'] = implode(',', array_map('mysql_real_escape_string', $instance['blog_id']));
     106                    $instance['blog_id'] = implode(',', array_map('htmlspecialchars', $instance['blog_id']));
    107107                }
    108108             // If it isn't an array
     
    126126                } else {
    127127                    // Scape the string (trying to minimize injection risks
    128                     $instance['ignore_blog'] = implode(',', array_map('mysql_real_escape_string', $instance['ignore_blog']));
     128                    $instance['ignore_blog'] = implode(',', array_map('htmlspecialchars', $instance['ignore_blog']));
    129129                }
    130130             // If it isn't an array
  • network-latest-posts/trunk/network-latest-posts.php

    r997179 r1095315  
    44Plugin URI: http://en.8elite.com/network-latest-posts
    55Description: Display the latest posts from the blogs in your network using it as a function, shortcode or widget.
    6 Version: 3.6
     6Version: 3.6.1
    77Author: Jose Luis SAYAGO
    88Author URI: http://laelite.info/
     
    193193    global $wpdb;
    194194    //global $nlp_time_frame;
     195    // Variables
     196    $total  = 0;
     197    $ignore = '';
    195198    // Default values
    196199    $defaults = array(
  • network-latest-posts/trunk/readme.txt

    r997179 r1095315  
    44Tags: recent posts, shortcode, widget, network, latest posts
    55Requires at least: 3.0
    6 Tested up to: 4.0
    7 Stable tag: 3.6
     6Tested up to: 4.1.1
     7Stable tag: 3.6.1
    88
    99This plugin allows you to pull all the recent posts from the blogs in your WordPress network and display them in your main site (or internal sites)
     
    149149== Changelog ==
    150150
     151= 3.6.1 =
     152* Improved widget class security for compatibility with certain PHP configurations.
     153* Tested compatibility with WordPress 4.1.1
     154
    151155= 3.6 =
    152156* Added filters for custom HTML tags.
Note: See TracChangeset for help on using the changeset viewer.