定制 wpify/disable-login-concatenation 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wpify/disable-login-concatenation

最新稳定版本:1.0.0

Composer 安装命令:

composer require wpify/disable-login-concatenation

包简介

Disables script/style concatenation on the WordPress login page so styles load correctly when load-styles.php and load-scripts.php are blocked by the web server.

README 文档

README

WordPress mu-plugin that fixes broken styles on wp-login.php when load-styles.php and load-scripts.php are blocked by the web server.

Problem

A common security hardening practice is to block access to /wp-admin/load-styles.php and /wp-admin/load-scripts.php for unauthenticated users (e.g. via nginx rules). However, WordPress uses these endpoints to serve concatenated CSS/JS on the login page — so blocking them results in an unstyled login screen.

Solution

This plugin hooks into login_init and disables script/style concatenation. WordPress then outputs individual <link> and <script> tags pointing to static CSS/JS files, which the web server can serve directly without going through the blocked PHP endpoints.

Installation

Copy disable-login-concatenation.php into your mu-plugins/ directory. No configuration needed.

Compatibility

Works with any WordPress version that uses load-styles.php/load-scripts.php for concatenation (WordPress 2.8+).

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-03-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固