Git Product home page Git Product logo

add-page-from-template's People

Contributors

abazure-jp avatar yousan avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

abazure-jp say3no

add-page-from-template's Issues

Notice

Notice given when the plugin installed at first time.

Notice: Undefined index: aggressive in /home/path/to/wp/wp-content/plugins/add-page-from-template/includes/class-option.php on line 47

screen shot 2016-01-22 at 1 48 51 pm

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.