add-page-from-template's People
add-page-from-template's Issues
Notice
TravisCI fails at any commits
Configuration read from /home/travis/build/yousan/add-page-from-template/phpunit.xml.dist
..PHP Fatal error: Class 'AP_TemplateStatus' not found in /home/travis/build/yousan/add-page-from-template/includes/class-template.php on line 102
PHP Stack trace:
PHP 1. {main}() /home/travis/.phpenv/versions/5.3.29/bin/phpunit:0
PHP 2. PHPUnit_TextUI_Command::main() /home/travis/.phpenv/versions/5.3.29/bin/phpunit:722
PHP 3. PHPUnit_TextUI_Command->run() phar:///home/travis/.phpenv/versions/5.3.29/bin/phpunit/phpunit/TextUI/Command.php:104
PHP 4. PHPUnit_TextUI_TestRunner->doRun()
Don't execute flush_rewrite_rules on any hook that will triggered on a routine basis.
https://github.com/yousan/add-page-from-template/blob/master/includes/functions.php#L19
ex. https://codex.wordpress.org/Function_Reference/flush_rewrite_rules
and
flush rules on init hook, registration rules is erased after its processing. ( ex. register_post_type, register_taxonomy. )
毎度呼び出すとやばいです。
また、initフックで実行すると、その実行の後に登録されるリライトルールは消えてしまいます。
(たとえば、register_post_type, register_taxonomy.)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.