WPZ

/ data / web / 1 / 000 / 076 / 129 / 313906 / htdocs / wp-content / plugins / seo-by-rank-math / includes / [dxwrx-r--r]
berkas terminal database massal sistem
/data/web/1/000/076/129/313906/htdocs/wp-content/plugins/seo-by-rank-math/includes/class-post.php (4.68 KB)
<?php
/**
 * The Post Class
 *
 * @since      0.9.0
 * @package    RankMath
 * @subpackage RankMath\Core
 * @author     Rank Math <support@rankmath.com>
 *
 * @copyright Copyright (C) 2008-2019, Yoast BV
 * The following code is a derivative work of the code from the Yoast(https://github.com/Yoast/wordpress-seo/), which is licensed under GPL v3.
 */

namespace RankMath;

use WP_Post;

defined( 'ABSPATH' ) || exit;

/**
 * Post class.
 */
class Post extends Metadata {

	/**
	 * Type of object metadata is for (e.g., comment, post, or user).
	 *
	 * @var string
	 */
	protected $meta_type = 'post';

	/**
	 * Retrieve Post instance.
	 *
	 * @param  WP_Post|object|int $post Post to get either (int) post ID or (WP_Post|object) post.
	 * @return Post|false Post object, false otherwise.
	 */
	public static function get( $post = 0 ) {
		$post = self::get_post_id( $post );
		if ( false === $post ) {
			return null;
		}

		if ( isset( self::$objects[ $post ] ) && 'post' === self::$objects[ $post ]->meta_type ) {
			return self::$objects[ $post ];
		}

		$_post                  = new self( WP_Post::get_instance( $post ) );
		$_post->object_id       = $post;
		self::$objects[ $post ] = $_post;

		return $_post;
	}

	/**
	 * Get the post ID.
	 *
	 * @param  integer $post Post ID.
	 * @return integer
	 */
	private static function get_post_id( $post = 0 ) {
		if ( is_object( $post ) && isset( $post->ID ) ) {
			return $post->ID;
		}

		$post = absint( $post );
		if ( $post > 0 ) {
			return $post;
		}

		if ( 0 === $post ) {
			$post = get_post();
		}

		return ! is_null( $post ) ? $post->ID : false;
	}

	/**
	 * Get a post meta value.
	 *
	 * @param  string  $key           Value to get, without prefix.
	 * @param  integer $post_id       ID of the post.
	 * @param  string  $default_value Default value to use when metadata does not exists.
	 * @return mixed
	 */
	public static function get_meta( $key, $post_id = 0, $default_value = '' ) {
		$post = self::get( $post_id );

		if ( is_null( $post ) || ! $post->is_found() || 'auto-draft' === $post->post_status ) {
			return '';
		}

		return $post->get_metadata( $key, $default_value );
	}

	/**
	 * Get the ID of the current page.
	 *
	 * @return int The ID of the page.
	 */
	public static function get_page_id() {
		/**
		 * Filter: Allow changing the page ID before we process anything.
		 *
		 * @param bool|int $page_id The default page ID.
		 */
		$page_id = apply_filters( 'rank_math/pre_simple_page_id', false );
		if ( false !== $page_id ) {
			return $page_id;
		}

		if ( \is_singular() ) {
			return get_the_ID();
		}

		if ( self::is_posts_page() ) {
			return get_option( 'page_for_posts' );
		}

		if ( self::is_shop_page() ) {
			return self::get_shop_page_id();
		}

		/**
		 * Filter: Allow changing the page ID.
		 *
		 * @param int $page_id The page ID.
		 */
		return apply_filters( 'rank_math/simple_page_id', 0 );
	}

	/**
	 * Returns the ID of the selected WooCommerce shop page.
	 *
	 * @return int The ID of the Shop page.
	 */
	public static function get_shop_page_id() {
		static $shop_page_id;
		if ( ! $shop_page_id ) {
			$shop_page_id = function_exists( 'wc_get_page_id' ) ? wc_get_page_id( 'shop' ) : ( -1 );
		}

		return $shop_page_id;
	}

	/**
	 * Checks if the current page is a simple page.
	 *
	 * @return bool Whether the current page is a simple page.
	 */
	public static function is_simple_page() {
		return self::get_page_id() > 0;
	}

	/**
	 * Checks if the current page is the WooCommerce "Shop" page.
	 *
	 * @return bool Whether the current page is the shop page.
	 */
	public static function is_shop_page() {
		if ( function_exists( 'is_shop' ) && function_exists( 'wc_get_page_id' ) ) {
			return \is_shop() && ! \is_search();
		}

		return false;
	}

	/**
	 * Checks if the current page is one of the WooCommerce pages: Cart/Account/Checkout.
	 *
	 * @return bool Whether the current page is a WooCommerce page.
	 */
	public static function is_woocommerce_page() {
		if ( Helper::is_woocommerce_active() ) {
			return \is_cart() || \is_checkout() || \is_account_page();
		}

		return false;
	}

	/**
	 * Check whether this is the homepage and if it shows the posts.
	 *
	 * @return bool
	 */
	public static function is_home_posts_page() {
		return ( \is_home() && 'posts' === get_option( 'show_on_front' ) );
	}

	/**
	 * Check whether this is the static frontpage.
	 *
	 * @return bool
	 */
	public static function is_home_static_page() {
		return ( \is_front_page() && 'page' === get_option( 'show_on_front' ) && \is_page( get_option( 'page_on_front' ) ) );
	}

	/**
	 * Check if this is the posts page and that it's not the frontpage.
	 *
	 * @return bool
	 */
	public static function is_posts_page() {
		return ( \is_home() && 'page' === get_option( 'show_on_front' ) );
	}
}
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: /data/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