1. picture onerror and js code scheme By splitting the domain name link and comparing it with the mirror station, and then using the null value of img tag src to trigger onerror to perform js comparison, if the comparison…
Since wordpress 3.5, WordPress has modified the wpdb::prepare () method, and the second parameter of wpdb::prepare () must be filled in! If it doesn’t pass, it will report an error: Warning: Missing argument 2 for wpdb::prepare(), called in xxx.php on…
Today, when judging users and obtaining information such as user nicknames, we used the commonly used get_currentuserinfo (); Method! But WordPress gave me a warning! Function is too old! Notice: get_currentuserinfo has been deprecated since version 4.5.0. Please use wp_get_current_user…
Après avoir installé plusieurs plugins WordPress et corrigé quelques bugs simples, j’ai augmenté la vitesse de chargement de mon site de 1,61 à 583 millisecondes. C’est une augmentation de 70,39% sans aucune modification de la vision du site. Selon une…
Method 1: WP-CLI WP-CLI is an official WordPress command line tool. Without a browser, you can quickly install, update the theme, configure the site, search and replace almost all conceivable functions. How to install WP-CLI is not explained here, please…
Webmasters who have played WordPress should be familiar with the phrase “Error establishing a database connection”. When you see this sentence, the website may have been hung up for several hours-because WordPress will not automatically email you this error. Fortunately,…
Due to frequent search, Memcached memory cache is opened to reduce the pressure on the server, improve the access speed and improve the user experience. Because it is placed on the same server as my brother’s blog, I automatically jump…
Recently, I made various optimizations for website SEO, including website map. When I checked sitemap.xml, I found that php reported an error. The warning prompt “warning: use of undefined constant GMT–assured’ GMT’ (this will throw an error in a future…
When wordpress publishes and updates articles, we always upload pictures or video attachments to the media library. But you will find that uploading attachments in wordpress background will automatically generate an attachment page. As shown in the figure below: How…
In fact, there are other types of search results, such as single page, revised version and so on. Obviously, these are not what I want. In fact, it is enough to just show the article page to the user. On…