Make WordPress Core

Ticket #24373: wp-import.diff

File wp-import.diff, 876 bytes (added by jdgrimes, 10 years ago)

Fix deprecated warnings for WP_Import in PHP7

  • Users/johngrimes/svn/wordpress/trunk/tests/phpunit/data/plugins/wordpress-importer/wordpress-importer.php

     
    6363        var $url_remap = array();
    6464        var $featured_images = array();
    6565
    66         function WP_Import() { /* nothing */ }
     66        /**
     67         * PHP5 constructor.
     68         */
     69        function __construct() { /* nothing */ }
    6770
    6871        /**
     72         * PHP4 constructor.
     73         */
     74        public function WP_Import() {
     75                self::__construct();
     76        }
     77
     78        /**
    6979         * Registered callback function for the WordPress Importer
    7080         *
    7181         * Manages the three separate stages of the WXR import process