Plugin Directory

Changeset 1554714


Ignore:
Timestamp:
12/14/2016 03:26:20 PM (9 years ago)
Author:
bainternet
Message:

php7 support and replaced deprecated functions

Location:
advanced-code-editor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • advanced-code-editor/trunk/advanced-code-editor.php

    r985195 r1554714  
    44Plugin URI: http://en.bainternet.info
    55Description: Enables syntax highlighting in the integrated themes and plugins source code editors with line numbers, AutoComplete and much more. Supports PHP, HTML, CSS and JS.
    6 Version: 2.2.6
     6Version: 2.2.7
    77Author: BaInternet
    88Author URI: http://en.bainternet.info
     
    5757         * @var string
    5858         */
    59         public $version = '2.2.6';
     59        public $version = '2.2.7';
    6060
    6161        /**
    6262         * Class constarctor
    6363         */
    64         public function advanced_code_editor(){
     64        public function __construct(){
    6565            if( is_admin()){
    6666                $this->tablename = 'filemeta';
     
    598598        function ajax_create_directory(){
    599599            check_ajax_referer('create_directory');
    600             global $current_user;
    601             get_currentuserinfo();
     600            $current_user = wp_get_current_user();
    602601            if (isset($_POST['di_name']) && isset($_POST['dir'])){
    603602                if (current_user_can('manage_options')){
     
    643642        function ajax_delete_file(){
    644643            check_ajax_referer('delete_file');
    645             global $current_user;
    646             get_currentuserinfo();
     644            $current_user = wp_get_current_user();
    647645            if(isset($_POST['F_T_D']) && $_POST['F_T_D'] != '' && isset($_POST['f_type'])){
    648646                $f_name = '';
     
    667665        function ajax_create_file(){
    668666            check_ajax_referer('create_new_file');
    669             global $current_user;
    670             get_currentuserinfo();
     667            $current_user = wp_get_current_user();
    671668            if(isset($_POST)){
    672669            $checks = false;
  • advanced-code-editor/trunk/readme.txt

    r1549138 r1554714  
    55Requires at least: 3.0
    66Tested up to: 4.7.0
    7 Stable tag: 2.2.6
     7Stable tag: 2.2.7
    88
    99Enables syntax highlighting in the integrated themes and plugins source code editors with line numbers, AutoComplete and much more. Supports PHP, HTML, CSS and JS.
     
    8484
    8585== Changelog ==
     862.2.7
     87PHP7 support.
     88removed deprecated functions call.
     89
    86902.2.6
    8791Fixed strict errors notice.
Note: See TracChangeset for help on using the changeset viewer.