WordPress.org

Make WordPress Core

Ticket #16768: media_php4_constructor.patch

File media_php4_constructor.patch, 509 bytes (added by Jayjdk, 7 years ago)

Removes PHP4 constructor for WP_Embed in media.php

  • media.php

     
    10251025        var $linkifunknown = true;
    10261026
    10271027        /**
    1028          * PHP4 constructor
     1028         * Constructor
    10291029         */
    1030         function WP_Embed() {
    1031                 return $this->__construct();
    1032         }
    1033 
    1034         /**
    1035          * PHP5 constructor
    1036          */
    10371030        function __construct() {
    10381031                // Hack to get the [embed] shortcode to run before wpautop()
    10391032                add_filter( 'the_content', array(&$this, 'run_shortcode'), 8 );