Plugin yìí kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress. Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

Development Environment

Àpèjúwe

Whoops error handling, no password logins, template hints, no indexing, flush rewrites, everything a developer needs for their local development environment.

Components

  • Disallow Indexing Turn off the public blog option. This will modify the robots.txt generation to block all search engines
  • Flush Rewrites No more weird redirection problems when working on custom post types or taxonomies.
  • No Password Logins Just stick the user in you want to login as, write anything in the password field, and it will login! Only works when connecting from local host
  • Whoops Error Handling The error screen from laravel, now in your WordPress setup
  • Template Hints See which templates are loading for the page you are on

The goal is to exchange security for ease of use, for that reason itÌtumọ̀ Yorùbá: ’s important that you take the security measures needed
to ensure that someone canÌtumọ̀ Yorùbá: ’t take advantage of the site with this plugin enabled.

If youÌtumọ̀ Yorùbá: ’re running on a staging environment ensure you have setup a htpasswd

Filters

Set Environment

development-environment/is-development

Dynamically set how the plugin detects if the environment is development based on your own criteria.

Stop a component from loading

development-environment/require-component-$component

Disable require of a component if you donÌtumọ̀ Yorùbá: ’t want to use it. Possible values are:

disallow-indexing, `flush-rewrites`, `no-password-logins`, `whoops-error-handling`

Ìgbéwọlẹ̀

To use the plugin, it must be able to detect the environment is development or staging, this can be done via the following:

wp-config.php
Add define('WP_ENV', 'development')

vhost
Add SetEnv WP_ENV "development"

Or additionally via the available hooks.

Àwọn àgbéyẹ̀wò

Ọ̀wàrà 23, 2017 1 ìdáhùn
Ìtumọ̀ Yorùbá: – quote from user Ìtumọ̀ Yorùbá: – "When an error is thrown it's so easy to find it and quickly debug why it happened, and the no password login makes my day so much easier
Ka gbogbo àgbéyẹ̀wò 1

Àwọn Olùkópa & Olùgbéejáde

“Development Environment” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.

Àwọn Olùkópa

Túmọ̀ “Development Environment” sí èdè rẹ.

Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.

Àkọsílẹ̀ àwọn àyípadà

See changelog on (github)[https://github.com/loonpwn/wp-development-environment/releases]