ArgCV

  • Home
  • Code
    • Snippets
  • Life
  • About
  • Gallery
  • Guestbook
  • RSS

Wordpress

WordPress is a free and open-source content management system (CMS) based on PHP and MySQL. WordPress is installed on a web server, which either is part of an Internet hosting service or is a network host itself; the first case may be on a service like WordPress.com, for example, and the second case is a computer running the software package WordPress.org. An example of the second case is a local computer configured to act as its own web server hosting Wordpress for single-user testing or learning purposes. Features include a plugin architecture and a template system. WordPress was used by more than 23.3% of the top 10 million websites as of January 2015. WordPress is the most popular blogging system in use on the Web, at more than 60 million websites.

Code

Increase the maximum upload file size for WordPress

The default file upload size is 2M.

If we are supposed to increase the size, a few update would be required.

(more…)

By Yu, 7 years2 years ago
Code

过期的 mysql_escape_string 在 WordPress 下的解决办法

对 string 稍作处理, 避免在写 query 的时候被 SQL 注入, 这是常识. 我们若变更 PHP 版本, 有时候会出现 Call To Undefined Function 这样的错误. 很多时候, 我们需要做出一些兼容性的处理.

不过, 若我们是在 WordPress 的平台上写插件, 则不必这么麻烦了.

(more…)

By Yu, 9 years2 years ago
Code

WordPress 线上更新权限不足失败的诊断日志

换了台机器后, Wordpress 更新软件, 直接跳到一个页面让我输 ftp 账号和口令. 然而我并没有搭建这个 ftp.

在 Wordpress 的根目录下 wp-config.php 设置参数如下: (more…)

By Yu, 9 years2 years ago
Code

评论框添加 Ctrl+Enter 即发送

这东西可以通过修改 theme 的 comment.php (路径: Appearance->Editor->Comments(或者其他类似的))来达到目标。

基本原理是这篇文字的内容。

问题是,现在 WP 的评论框非常之省事: (more…)

By Yu, 12 years2 years ago
Code

使用 .htaccess 对 apache 进行 301 重定向

前几天,对blog的一番网址抒发胸臆,结果造成google大面积404,更重要的是,我自己的书签挂了好几个。不爽。 所以修改.htaccess文件,利用apache服务器的特性进行重定向。 (more…)

By Yu, 12 years2 years ago
Life

修改 Permalink Settings 的记录

刚才看到有人改他的网址为"http****.ooxx",以此抒发他的各种神奇的志向。

我觉得这是个好主意。 (more…)

By Yu, 12 years2 years ago
Code

做个插入维基词条的插件

常常使用到各种术语什么的,一个一个解释,其实也就是copy Wikipedia词条上的东西,费时费力不讨好,还不如直接挂个链接完事,但是每次添加链接都是个悲剧的事情,各种数据添加的人都要疯掉了。 (more…)

By Yu, 12 years2 years ago
  • Home
  • About
  • Guestbook
  • Privacy Policy
Hesmod | Developed by ThemeIsle, Revised by ArgCV