/home/fresvfqn/crimescenecleaningupsuffolkcounty.com/widgets.zip
PK )I][
�L�! �! class-wp-widget-media-video.phpnu �[��� <?php
/**
* Widget API: WP_Widget_Media_Video class
*
* @package WordPress
* @subpackage Widgets
* @since 4.8.0
*/
/**
* Core class that implements a video widget.
*
* @since 4.8.0
*
* @see WP_Widget_Media
* @see WP_Widget
*/
class WP_Widget_Media_Video extends WP_Widget_Media {
/**
* Constructor.
*
* @since 4.8.0
*/
public function __construct() {
parent::__construct(
'media_video',
__( 'Video' ),
array(
'description' => __( 'Displays a video from the media library or from YouTube, Vimeo, or another provider.' ),
'mime_type' => 'video',
)
);
$this->l10n = array_merge(
$this->l10n,
array(
'no_media_selected' => __( 'No video selected' ),
'add_media' => _x( 'Add Video', 'label for button in the video widget' ),
'replace_media' => _x( 'Replace Video', 'label for button in the video widget; should preferably not be longer than ~13 characters long' ),
'edit_media' => _x( 'Edit Video', 'label for button in the video widget; should preferably not be longer than ~13 characters long' ),
'missing_attachment' => sprintf(
/* translators: %s: URL to media library. */
__( 'That video cannot be found. Check your <a href="%s">media library</a> and make sure it was not deleted.' ),
esc_url( admin_url( 'upload.php' ) )
),
/* translators: %d: Widget count. */
'media_library_state_multi' => _n_noop( 'Video Widget (%d)', 'Video Widget (%d)' ),
'media_library_state_single' => __( 'Video Widget' ),
/* translators: %s: A list of valid video file extensions. */
'unsupported_file_type' => sprintf( __( 'Sorry, the video at the supplied URL cannot be loaded. Please check that the URL is for a supported video file (%s) or stream (e.g. YouTube and Vimeo).' ), '<code>.' . implode( '</code>, <code>.', wp_get_video_extensions() ) . '</code>' ),
)
);
}
/**
* Get schema for properties of a widget instance (item).
*
* @since 4.8.0
*
* @see WP_REST_Controller::get_item_schema()
* @see WP_REST_Controller::get_additional_fields()
* @link https://core.trac.wordpress.org/ticket/35574
*
* @return array Schema for properties.
*/
public function get_instance_schema() {
$schema = array(
'preload' => array(
'type' => 'string',
'enum' => array( 'none', 'auto', 'metadata' ),
'default' => 'metadata',
'description' => __( 'Preload' ),
'should_preview_update' => false,
),
'loop' => array(
'type' => 'boolean',
'default' => false,
'description' => __( 'Loop' ),
'should_preview_update' => false,
),
'content' => array(
'type' => 'string',
'default' => '',
'sanitize_callback' => 'wp_kses_post',
'description' => __( 'Tracks (subtitles, captions, descriptions, chapters, or metadata)' ),
'should_preview_update' => false,
),
);
foreach ( wp_get_video_extensions() as $video_extension ) {
$schema[ $video_extension ] = array(
'type' => 'string',
'default' => '',
'format' => 'uri',
/* translators: %s: Video extension. */
'description' => sprintf( __( 'URL to the %s video source file' ), $video_extension ),
);
}
return array_merge( $schema, parent::get_instance_schema() );
}
/**
* Render the media on the frontend.
*
* @since 4.8.0
*
* @param array $instance Widget instance props.
*/
public function render_media( $instance ) {
$instance = array_merge( wp_list_pluck( $this->get_instance_schema(), 'default' ), $instance );
$attachment = null;
if ( $this->is_attachment_with_mime_type( $instance['attachment_id'], $this->widget_options['mime_type'] ) ) {
$attachment = get_post( $instance['attachment_id'] );
}
$src = $instance['url'];
if ( $attachment ) {
$src = wp_get_attachment_url( $attachment->ID );
}
if ( empty( $src ) ) {
return;
}
$youtube_pattern = '#^https?://(?:www\.)?(?:youtube\.com/watch|youtu\.be/)#';
$vimeo_pattern = '#^https?://(.+\.)?vimeo\.com/.*#';
if ( $attachment || preg_match( $youtube_pattern, $src ) || preg_match( $vimeo_pattern, $src ) ) {
add_filter( 'wp_video_shortcode', array( $this, 'inject_video_max_width_style' ) );
echo wp_video_shortcode(
array_merge(
$instance,
compact( 'src' )
),
$instance['content']
);
remove_filter( 'wp_video_shortcode', array( $this, 'inject_video_max_width_style' ) );
} else {
echo $this->inject_video_max_width_style( wp_oembed_get( $src ) );
}
}
/**
* Inject max-width and remove height for videos too constrained to fit inside sidebars on frontend.
*
* @since 4.8.0
*
* @param string $html Video shortcode HTML output.
* @return string HTML Output.
*/
public function inject_video_max_width_style( $html ) {
$html = preg_replace( '/\sheight="\d+"/', '', $html );
$html = preg_replace( '/\swidth="\d+"/', '', $html );
$html = preg_replace( '/(?<=width:)\s*\d+px(?=;?)/', '100%', $html );
return $html;
}
/**
* Enqueue preview scripts.
*
* These scripts normally are enqueued just-in-time when a video shortcode is used.
* In the customizer, however, widgets can be dynamically added and rendered via
* selective refresh, and so it is important to unconditionally enqueue them in
* case a widget does get added.
*
* @since 4.8.0
*/
public function enqueue_preview_scripts() {
/** This filter is documented in wp-includes/media.php */
if ( 'mediaelement' === apply_filters( 'wp_video_shortcode_library', 'mediaelement' ) ) {
wp_enqueue_style( 'wp-mediaelement' );
wp_enqueue_script( 'mediaelement-vimeo' );
wp_enqueue_script( 'wp-mediaelement' );
}
}
/**
* Loads the required scripts and styles for the widget control.
*
* @since 4.8.0
*/
public function enqueue_admin_scripts() {
parent::enqueue_admin_scripts();
$handle = 'media-video-widget';
wp_enqueue_script( $handle );
$exported_schema = array();
foreach ( $this->get_instance_schema() as $field => $field_schema ) {
$exported_schema[ $field ] = wp_array_slice_assoc( $field_schema, array( 'type', 'default', 'enum', 'minimum', 'format', 'media_prop', 'should_preview_update' ) );
}
wp_add_inline_script(
$handle,
sprintf(
'wp.mediaWidgets.modelConstructors[ %s ].prototype.schema = %s;',
wp_json_encode( $this->id_base ),
wp_json_encode( $exported_schema )
)
);
wp_add_inline_script(
$handle,
sprintf(
'
wp.mediaWidgets.controlConstructors[ %1$s ].prototype.mime_type = %2$s;
wp.mediaWidgets.controlConstructors[ %1$s ].prototype.l10n = _.extend( {}, wp.mediaWidgets.controlConstructors[ %1$s ].prototype.l10n, %3$s );
',
wp_json_encode( $this->id_base ),
wp_json_encode( $this->widget_options['mime_type'] ),
wp_json_encode( $this->l10n )
)
);
}
/**
* Render form template scripts.
*
* @since 4.8.0
*/
public function render_control_template_scripts() {
parent::render_control_template_scripts()
?>
<script type="text/html" id="tmpl-wp-media-widget-video-preview">
<# if ( data.error && 'missing_attachment' === data.error ) { #>
<?php
wp_admin_notice(
$this->l10n['missing_attachment'],
array(
'type' => 'error',
'additional_classes' => array( 'notice-alt', 'notice-missing-attachment' ),
)
);
?>
<# } else if ( data.error && 'unsupported_file_type' === data.error ) { #>
<?php
wp_admin_notice(
$this->l10n['unsupported_file_type'],
array(
'type' => 'error',
'additional_classes' => array( 'notice-alt', 'notice-missing-attachment' ),
)
);
?>
<# } else if ( data.error ) { #>
<?php
wp_admin_notice(
__( 'Unable to preview media due to an unknown error.' ),
array(
'type' => 'error',
'additional_classes' => array( 'notice-alt' ),
)
);
?>
<# } else if ( data.is_oembed && data.model.poster ) { #>
<a href="{{ data.model.src }}" target="_blank" class="media-widget-video-link">
<img src="{{ data.model.poster }}" />
</a>
<# } else if ( data.is_oembed ) { #>
<a href="{{ data.model.src }}" target="_blank" class="media-widget-video-link no-poster">
<span class="dashicons dashicons-format-video"></span>
</a>
<# } else if ( data.model.src ) { #>
<?php wp_underscore_video_template(); ?>
<# } #>
</script>
<?php
}
}
PK )I][���@ �@ error_lognu �[��� [29-Aug-2025 11:15:19 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-recent-posts.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-recent-posts.php on line 17
[29-Aug-2025 11:33:07 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-block.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-block.php on line 17
[29-Aug-2025 11:37:33 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget_Media" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-media-video.php:18
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-media-video.php on line 18
[29-Aug-2025 12:28:45 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget_Media" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-media-audio.php:18
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-media-audio.php on line 18
[29-Aug-2025 12:53:53 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-recent-comments.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-recent-comments.php on line 17
[29-Aug-2025 13:49:46 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-rss.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-rss.php on line 17
[29-Aug-2025 13:51:54 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget_Media" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-media-image.php:18
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-media-image.php on line 18
[29-Aug-2025 15:27:17 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-tag-cloud.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-tag-cloud.php on line 17
[29-Aug-2025 15:57:07 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-nav-menu-widget.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-nav-menu-widget.php on line 17
[29-Aug-2025 16:21:16 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-archives.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-archives.php on line 17
[29-Aug-2025 16:54:08 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-text.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-text.php on line 17
[29-Aug-2025 17:34:16 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget_Media" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-media-gallery.php:18
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-media-gallery.php on line 18
[29-Aug-2025 19:02:32 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-categories.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-categories.php on line 17
[29-Aug-2025 19:04:07 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-links.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-links.php on line 17
[29-Aug-2025 19:39:05 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-pages.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-pages.php on line 17
[29-Aug-2025 19:43:22 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-media.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-media.php on line 17
[29-Aug-2025 20:59:31 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-calendar.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-calendar.php on line 17
[29-Aug-2025 21:01:37 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-search.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-search.php on line 17
[29-Aug-2025 22:25:28 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-meta.php:19
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-meta.php on line 19
[29-Aug-2025 22:34:24 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-custom-html.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-custom-html.php on line 17
[01-Sep-2025 03:13:06 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-block.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-block.php on line 17
[06-Sep-2025 14:29:13 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-block.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-block.php on line 17
[07-Sep-2025 01:46:36 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-block.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-block.php on line 17
[16-Sep-2025 00:48:34 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-block.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-block.php on line 17
[25-Sep-2025 00:28:18 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-block.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-block.php on line 17
[29-Sep-2025 04:18:39 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-block.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-block.php on line 17
[06-Oct-2025 07:08:41 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-media.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-media.php on line 17
[06-Oct-2025 07:25:54 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-categories.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-categories.php on line 17
[06-Oct-2025 07:26:07 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-recent-comments.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-recent-comments.php on line 17
[06-Oct-2025 07:39:34 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-links.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-links.php on line 17
[06-Oct-2025 07:40:30 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-custom-html.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-custom-html.php on line 17
[06-Oct-2025 08:39:31 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget_Media" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-media-audio.php:18
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-media-audio.php on line 18
[06-Oct-2025 08:43:24 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-recent-posts.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-recent-posts.php on line 17
[06-Oct-2025 08:57:15 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-pages.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-pages.php on line 17
[06-Oct-2025 09:22:06 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget_Media" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-media-gallery.php:18
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-media-gallery.php on line 18
[06-Oct-2025 09:30:36 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-archives.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-archives.php on line 17
[06-Oct-2025 12:41:13 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-search.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-search.php on line 17
[06-Oct-2025 14:09:55 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-text.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-text.php on line 17
[06-Oct-2025 15:20:34 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-meta.php:19
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-meta.php on line 19
[06-Oct-2025 15:42:19 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-tag-cloud.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-tag-cloud.php on line 17
[06-Oct-2025 15:51:51 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-block.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-block.php on line 17
[06-Oct-2025 16:13:10 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-nav-menu-widget.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-nav-menu-widget.php on line 17
[06-Oct-2025 16:31:56 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-calendar.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-calendar.php on line 17
[06-Oct-2025 16:49:19 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget_Media" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-media-video.php:18
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-media-video.php on line 18
[06-Oct-2025 17:25:33 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-rss.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-rss.php on line 17
[06-Oct-2025 17:45:41 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget_Media" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-media-image.php:18
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-media-image.php on line 18
[13-Oct-2025 01:08:19 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-block.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-block.php on line 17
[13-Oct-2025 02:05:57 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-block.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-block.php on line 17
[29-Oct-2025 05:49:49 UTC] PHP Fatal error: Uncaught Error: Class "WP_Widget" not found in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-block.php:17
Stack trace:
#0 {main}
thrown in /home/fresvfqn/emergencywaterdamagemanhattan.com/wp-includes/widgets/class-wp-widget-block.php on line 17
PK )I][���X X class-wp-widget-pages.phpnu �[��� <?php
/**
* Widget API: WP_Widget_Pages class
*
* @package WordPress
* @subpackage Widgets
* @since 4.4.0
*/
/**
* Core class used to implement a Pages widget.
*
* @since 2.8.0
*
* @see WP_Widget
*/
class WP_Widget_Pages extends WP_Widget {
/**
* Sets up a new Pages widget instance.
*
* @since 2.8.0
*/
public function __construct() {
$widget_ops = array(
'classname' => 'widget_pages',
'description' => __( 'A list of your site’s Pages.' ),
'customize_selective_refresh' => true,
'show_instance_in_rest' => true,
);
parent::__construct( 'pages', __( 'Pages' ), $widget_ops );
}
/**
* Outputs the content for the current Pages widget instance.
*
* @since 2.8.0
*
* @param array $args Display arguments including 'before_title', 'after_title',
* 'before_widget', and 'after_widget'.
* @param array $instance Settings for the current Pages widget instance.
*/
public function widget( $args, $instance ) {
$default_title = __( 'Pages' );
$title = ! empty( $instance['title'] ) ? $instance['title'] : $default_title;
/**
* Filters the widget title.
*
* @since 2.6.0
*
* @param string $title The widget title. Default 'Pages'.
* @param array $instance Array of settings for the current widget.
* @param mixed $id_base The widget ID.
*/
$title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
$sortby = empty( $instance['sortby'] ) ? 'menu_order' : $instance['sortby'];
$exclude = empty( $instance['exclude'] ) ? '' : $instance['exclude'];
if ( 'menu_order' === $sortby ) {
$sortby = 'menu_order, post_title';
}
$output = wp_list_pages(
/**
* Filters the arguments for the Pages widget.
*
* @since 2.8.0
* @since 4.9.0 Added the `$instance` parameter.
*
* @see wp_list_pages()
*
* @param array $args An array of arguments to retrieve the pages list.
* @param array $instance Array of settings for the current widget.
*/
apply_filters(
'widget_pages_args',
array(
'title_li' => '',
'echo' => 0,
'sort_column' => $sortby,
'exclude' => $exclude,
),
$instance
)
);
if ( ! empty( $output ) ) {
echo $args['before_widget'];
if ( $title ) {
echo $args['before_title'] . $title . $args['after_title'];
}
$format = current_theme_supports( 'html5', 'navigation-widgets' ) ? 'html5' : 'xhtml';
/** This filter is documented in wp-includes/widgets/class-wp-nav-menu-widget.php */
$format = apply_filters( 'navigation_widgets_format', $format );
if ( 'html5' === $format ) {
// The title may be filtered: Strip out HTML and make sure the aria-label is never empty.
$title = trim( strip_tags( $title ) );
$aria_label = $title ? $title : $default_title;
echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
}
?>
<ul>
<?php echo $output; ?>
</ul>
<?php
if ( 'html5' === $format ) {
echo '</nav>';
}
echo $args['after_widget'];
}
}
/**
* Handles updating settings for the current Pages widget instance.
*
* @since 2.8.0
*
* @param array $new_instance New settings for this instance as input by the user via
* WP_Widget::form().
* @param array $old_instance Old settings for this instance.
* @return array Updated settings to save.
*/
public function update( $new_instance, $old_instance ) {
$instance = $old_instance;
$instance['title'] = sanitize_text_field( $new_instance['title'] );
if ( in_array( $new_instance['sortby'], array( 'post_title', 'menu_order', 'ID' ), true ) ) {
$instance['sortby'] = $new_instance['sortby'];
} else {
$instance['sortby'] = 'menu_order';
}
$instance['exclude'] = sanitize_text_field( $new_instance['exclude'] );
return $instance;
}
/**
* Outputs the settings form for the Pages widget.
*
* @since 2.8.0
*
* @param array $instance Current settings.
*/
public function form( $instance ) {
// Defaults.
$instance = wp_parse_args(
(array) $instance,
array(
'sortby' => 'post_title',
'title' => '',
'exclude' => '',
)
);
?>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Title:' ); ?></label>
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $instance['title'] ); ?>" />
</p>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'sortby' ) ); ?>"><?php _e( 'Sort by:' ); ?></label>
<select name="<?php echo esc_attr( $this->get_field_name( 'sortby' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'sortby' ) ); ?>" class="widefat">
<option value="post_title"<?php selected( $instance['sortby'], 'post_title' ); ?>><?php _e( 'Page title' ); ?></option>
<option value="menu_order"<?php selected( $instance['sortby'], 'menu_order' ); ?>><?php _e( 'Page order' ); ?></option>
<option value="ID"<?php selected( $instance['sortby'], 'ID' ); ?>><?php _e( 'Page ID' ); ?></option>
</select>
</p>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'exclude' ) ); ?>"><?php _e( 'Exclude:' ); ?></label>
<input type="text" value="<?php echo esc_attr( $instance['exclude'] ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'exclude' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'exclude' ) ); ?>" class="widefat" />
<br />
<small><?php _e( 'Page IDs, separated by commas.' ); ?></small>
</p>
<?php
}
}
PK )I][�8zz z class-wp-widget-tag-cloud.phpnu �[��� <?php
/**
* Widget API: WP_Widget_Tag_Cloud class
*
* @package WordPress
* @subpackage Widgets
* @since 4.4.0
*/
/**
* Core class used to implement a Tag cloud widget.
*
* @since 2.8.0
*
* @see WP_Widget
*/
class WP_Widget_Tag_Cloud extends WP_Widget {
/**
* Sets up a new Tag Cloud widget instance.
*
* @since 2.8.0
*/
public function __construct() {
$widget_ops = array(
'description' => __( 'A cloud of your most used tags.' ),
'customize_selective_refresh' => true,
'show_instance_in_rest' => true,
);
parent::__construct( 'tag_cloud', __( 'Tag Cloud' ), $widget_ops );
}
/**
* Outputs the content for the current Tag Cloud widget instance.
*
* @since 2.8.0
*
* @param array $args Display arguments including 'before_title', 'after_title',
* 'before_widget', and 'after_widget'.
* @param array $instance Settings for the current Tag Cloud widget instance.
*/
public function widget( $args, $instance ) {
$current_taxonomy = $this->_get_current_taxonomy( $instance );
if ( ! empty( $instance['title'] ) ) {
$title = $instance['title'];
} else {
if ( 'post_tag' === $current_taxonomy ) {
$title = __( 'Tags' );
} else {
$tax = get_taxonomy( $current_taxonomy );
$title = $tax->labels->name;
}
}
$default_title = $title;
$show_count = ! empty( $instance['count'] );
$tag_cloud = wp_tag_cloud(
/**
* Filters the taxonomy used in the Tag Cloud widget.
*
* @since 2.8.0
* @since 3.0.0 Added taxonomy drop-down.
* @since 4.9.0 Added the `$instance` parameter.
*
* @see wp_tag_cloud()
*
* @param array $args Args used for the tag cloud widget.
* @param array $instance Array of settings for the current widget.
*/
apply_filters(
'widget_tag_cloud_args',
array(
'taxonomy' => $current_taxonomy,
'echo' => false,
'show_count' => $show_count,
),
$instance
)
);
if ( empty( $tag_cloud ) ) {
return;
}
/** This filter is documented in wp-includes/widgets/class-wp-widget-pages.php */
$title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
echo $args['before_widget'];
if ( $title ) {
echo $args['before_title'] . $title . $args['after_title'];
}
$format = current_theme_supports( 'html5', 'navigation-widgets' ) ? 'html5' : 'xhtml';
/** This filter is documented in wp-includes/widgets/class-wp-nav-menu-widget.php */
$format = apply_filters( 'navigation_widgets_format', $format );
if ( 'html5' === $format ) {
// The title may be filtered: Strip out HTML and make sure the aria-label is never empty.
$title = trim( strip_tags( $title ) );
$aria_label = $title ? $title : $default_title;
echo '<nav aria-label="' . esc_attr( $aria_label ) . '">';
}
echo '<div class="tagcloud">';
echo $tag_cloud;
echo "</div>\n";
if ( 'html5' === $format ) {
echo '</nav>';
}
echo $args['after_widget'];
}
/**
* Handles updating settings for the current Tag Cloud widget instance.
*
* @since 2.8.0
*
* @param array $new_instance New settings for this instance as input by the user via
* WP_Widget::form().
* @param array $old_instance Old settings for this instance.
* @return array Settings to save or bool false to cancel saving.
*/
public function update( $new_instance, $old_instance ) {
$instance = array();
$instance['title'] = sanitize_text_field( $new_instance['title'] );
$instance['count'] = ! empty( $new_instance['count'] ) ? 1 : 0;
$instance['taxonomy'] = stripslashes( $new_instance['taxonomy'] );
return $instance;
}
/**
* Outputs the Tag Cloud widget settings form.
*
* @since 2.8.0
*
* @param array $instance Current settings.
*/
public function form( $instance ) {
$title = ! empty( $instance['title'] ) ? $instance['title'] : '';
$count = isset( $instance['count'] ) ? (bool) $instance['count'] : false;
?>
<p>
<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label>
<input type="text" class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo esc_attr( $title ); ?>" />
</p>
<?php
$taxonomies = get_taxonomies( array( 'show_tagcloud' => true ), 'object' );
$current_taxonomy = $this->_get_current_taxonomy( $instance );
switch ( count( $taxonomies ) ) {
// No tag cloud supporting taxonomies found, display error message.
case 0:
?>
<input type="hidden" id="<?php echo $this->get_field_id( 'taxonomy' ); ?>" name="<?php echo $this->get_field_name( 'taxonomy' ); ?>" value="" />
<p>
<?php _e( 'The tag cloud will not be displayed since there are no taxonomies that support the tag cloud widget.' ); ?>
</p>
<?php
break;
// Just a single tag cloud supporting taxonomy found, no need to display a select.
case 1:
$keys = array_keys( $taxonomies );
$taxonomy = reset( $keys );
?>
<input type="hidden" id="<?php echo $this->get_field_id( 'taxonomy' ); ?>" name="<?php echo $this->get_field_name( 'taxonomy' ); ?>" value="<?php echo esc_attr( $taxonomy ); ?>" />
<?php
break;
// More than one tag cloud supporting taxonomy found, display a select.
default:
?>
<p>
<label for="<?php echo $this->get_field_id( 'taxonomy' ); ?>"><?php _e( 'Taxonomy:' ); ?></label>
<select class="widefat" id="<?php echo $this->get_field_id( 'taxonomy' ); ?>" name="<?php echo $this->get_field_name( 'taxonomy' ); ?>">
<?php foreach ( $taxonomies as $taxonomy => $tax ) : ?>
<option value="<?php echo esc_attr( $taxonomy ); ?>" <?php selected( $taxonomy, $current_taxonomy ); ?>>
<?php echo esc_html( $tax->labels->name ); ?>
</option>
<?php endforeach; ?>
</select>
</p>
<?php
}
if ( count( $taxonomies ) > 0 ) {
?>
<p>
<input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id( 'count' ); ?>" name="<?php echo $this->get_field_name( 'count' ); ?>" <?php checked( $count, true ); ?> />
<label for="<?php echo $this->get_field_id( 'count' ); ?>"><?php _e( 'Show tag counts' ); ?></label>
</p>
<?php
}
}
/**
* Retrieves the taxonomy for the current Tag cloud widget instance.
*
* @since 4.4.0
*
* @param array $instance Current settings.
* @return string Name of the current taxonomy if set, otherwise 'post_tag'.
*/
public function _get_current_taxonomy( $instance ) {
if ( ! empty( $instance['taxonomy'] ) && taxonomy_exists( $instance['taxonomy'] ) ) {
return $instance['taxonomy'];
}
return 'post_tag';
}
}
PK )I][w�&/� � class-wp-widget-block.phpnu �[��� <?php
/**
* Widget API: WP_Widget_Block class
*
* @package WordPress
* @subpackage Widgets
* @since 5.8.0
*/
/**
* Core class used to implement a Block widget.
*
* @since 5.8.0
*
* @see WP_Widget
*/
class WP_Widget_Block extends WP_Widget {
/**
* Default instance.
*
* @since 5.8.0
* @var array
*/
protected $default_instance = array(
'content' => '',
);
/**
* Sets up a new Block widget instance.
*
* @since 5.8.0
*/
public function __construct() {
$widget_ops = array(
'classname' => 'widget_block',
'description' => __( 'A widget containing a block.' ),
'customize_selective_refresh' => true,
'show_instance_in_rest' => true,
);
$control_ops = array(
'width' => 400,
'height' => 350,
);
parent::__construct( 'block', __( 'Block' ), $widget_ops, $control_ops );
add_filter( 'is_wide_widget_in_customizer', array( $this, 'set_is_wide_widget_in_customizer' ), 10, 2 );
}
/**
* Outputs the content for the current Block widget instance.
*
* @since 5.8.0
*
* @param array $args Display arguments including 'before_title', 'after_title',
* 'before_widget', and 'after_widget'.
* @param array $instance Settings for the current Block widget instance.
*/
public function widget( $args, $instance ) {
$instance = wp_parse_args( $instance, $this->default_instance );
echo str_replace(
'widget_block',
$this->get_dynamic_classname( $instance['content'] ),
$args['before_widget']
);
/**
* Filters the content of the Block widget before output.
*
* @since 5.8.0
*
* @param string $content The widget content.
* @param array $instance Array of settings for the current widget.
* @param WP_Widget_Block $widget Current Block widget instance.
*/
echo apply_filters(
'widget_block_content',
$instance['content'],
$instance,
$this
);
echo $args['after_widget'];
}
/**
* Calculates the classname to use in the block widget's container HTML.
*
* Usually this is set to `$this->widget_options['classname']` by
* dynamic_sidebar(). In this case, however, we want to set the classname
* dynamically depending on the block contained by this block widget.
*
* If a block widget contains a block that has an equivalent legacy widget,
* we display that legacy widget's class name. This helps with theme
* backwards compatibility.
*
* @since 5.8.0
*
* @param string $content The HTML content of the current block widget.
* @return string The classname to use in the block widget's container HTML.
*/
private function get_dynamic_classname( $content ) {
$blocks = parse_blocks( $content );
$block_name = isset( $blocks[0] ) ? $blocks[0]['blockName'] : null;
switch ( $block_name ) {
case 'core/paragraph':
$classname = 'widget_block widget_text';
break;
case 'core/calendar':
$classname = 'widget_block widget_calendar';
break;
case 'core/search':
$classname = 'widget_block widget_search';
break;
case 'core/html':
$classname = 'widget_block widget_custom_html';
break;
case 'core/archives':
$classname = 'widget_block widget_archive';
break;
case 'core/latest-posts':
$classname = 'widget_block widget_recent_entries';
break;
case 'core/latest-comments':
$classname = 'widget_block widget_recent_comments';
break;
case 'core/tag-cloud':
$classname = 'widget_block widget_tag_cloud';
break;
case 'core/categories':
$classname = 'widget_block widget_categories';
break;
case 'core/audio':
$classname = 'widget_block widget_media_audio';
break;
case 'core/video':
$classname = 'widget_block widget_media_video';
break;
case 'core/image':
$classname = 'widget_block widget_media_image';
break;
case 'core/gallery':
$classname = 'widget_block widget_media_gallery';
break;
case 'core/rss':
$classname = 'widget_block widget_rss';
break;
default:
$classname = 'widget_block';
}
/**
* The classname used in the block widget's container HTML.
*
* This can be set according to the name of the block contained by the block widget.
*
* @since 5.8.0
*
* @param string $classname The classname to be used in the block widget's container HTML,
* e.g. 'widget_block widget_text'.
* @param string $block_name The name of the block contained by the block widget,
* e.g. 'core/paragraph'.
*/
return apply_filters( 'widget_block_dynamic_classname', $classname, $block_name );
}
/**
* Handles updating settings for the current Block widget instance.
*
* @since 5.8.0
* @param array $new_instance New settings for this instance as input by the user via
* WP_Widget::form().
* @param array $old_instance Old settings for this instance.
* @return array Settings to save or bool false to cancel saving.
*/
public function update( $new_instance, $old_instance ) {
$instance = array_merge( $this->default_instance, $old_instance );
if ( current_user_can( 'unfiltered_html' ) ) {
$instance['content'] = $new_instance['content'];
} else {
$instance['content'] = wp_kses_post( $new_instance['content'] );
}
return $instance;
}
/**
* Outputs the Block widget settings form.
*
* @since 5.8.0
*
* @see WP_Widget_Custom_HTML::render_control_template_scripts()
*
* @param array $instance Current instance.
*/
public function form( $instance ) {
$instance = wp_parse_args( (array) $instance, $this->default_instance );
?>
<p>
<label for="<?php echo $this->get_field_id( 'content' ); ?>">
<?php
/* translators: HTML code of the block, not an option that blocks HTML. */
_e( 'Block HTML:' );
?>
</label>
<textarea id="<?php echo $this->get_field_id( 'content' ); ?>" name="<?php echo $this->get_field_name( 'content' ); ?>" rows="6" cols="50" class="widefat code"><?php echo esc_textarea( $instance['content'] ); ?></textarea>
</p>
<?php
}
/**
* Makes sure no block widget is considered to be wide.
*
* @since 5.8.0
*
* @param bool $is_wide Whether the widget is considered wide.
* @param string $widget_id Widget ID.
* @return bool Updated `is_wide` value.
*/
public function set_is_wide_widget_in_customizer( $is_wide, $widget_id ) {
if ( str_starts_with( $widget_id, 'block-' ) ) {
return false;
}
return $is_wide;
}
}
PK )I][ ]� <