C:\xampp\htdocs\landing\wp-content\plugins\amp\includes\widgets\class-amp-widget-text.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
 * Class AMP_Widget_Text
 *
 * @since 0.7.0
 * @package AMP
 * @codeCoverageIgnore
 */

_deprecated_file__FILE__'2.0.0' );

if ( 
class_exists'WP_Widget_Text' ) ) {
    
/**
     * Class AMP_Widget_Text
     *
     * @since 0.7.0
     * @deprecated As of 2.0 the AMP_Core_Block_Handler will sanitize the core widgets instead.
     * @internal
     * @package AMP
     */
    
class AMP_Widget_Text extends WP_Widget_Text {

        
/**
         * Overrides the parent callback that strips width and height attributes.
         *
         * @param array $matches The matches returned from preg_replace_callback().
         * @return string $html The markup, unaltered.
         */
        
public function inject_video_max_width_style$matches ) {
            if ( 
amp_is_request() ) {
                return 
$matches[0];
            }
            return 
parent::inject_video_max_width_style$matches );
        }
    }

}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586