Denne utvidelsen har ikke blitt testet mot noen av de siste 3 hovedutgivelsene av WordPress. Den er kanskje ikke lenger holdt vedlike eller støttet, og den kan ha kompatibilitetsproblemer med nyeste versjoner av WordPress.

Vis miljøtypen på verktøyraden i admin

Beskrivelse

Om du er som meg har du ofte flere versjoner av det samme WordPress-nettstedet åpen i ulike nettleserfaner, f.eks produksjon i én fane og uvikling i en annen fane.

Og, hvis du er som meg, har du også uforvarende redigert innhold i produksjonsmiljøet og trodd du var i utviklingsmiljøet, eller omvendt.

I så fall er denne utvidelsen for deg!

It adds an indication of the current environment to the Admin Bar that is easier to see than examining the URL in your browser’s address bar.

Out-of-the-box behavior

I utgangspunktet er 2 ulike miljøtyper gjenkjent:

  • Production
    • The node added to the Admin Bar has a red background (i.e., Stop/be careful with any changes you make).
    • Om verken staging-, QA’ eller utviklingsmiljø er oppdaget, så vises Prod i verktøylinjen i admin.
  • Development
    • The node added to the Admin Bar has a green background (i.e., Go ahead, it is safe to make changes).
    • If WP is running on localhost (either a loopback IP address or LAN IP address), then Local displays in the Admin Bar.
    • If WP_DEBUG is defined & true, then Dev displays in the Admin Bar.

Customizing the out-of-the-box behavior

Ytterligere to miljøtyper er støttet, men kan ikke automatisk oppdages:

  • Staging
    • The node added to the Admin Bar has a yellow-ish background (i.e., Slow down, changes might make it into the production site).
    • For information on how to enable this environment, see the documentation.
  • QA
    • The node added to the Admin Bar has a blue background (i.e., «It’s cool», changes you make won’t affect the production site).
    • For information on how to enable this environment, see the documentation.

Skjermskudd

  • Produksjon
  • Staging
  • QA
  • Utvikling
  • Custom — Preview

Vurderinger

13. oktober, 2020
Thanks a lot for publishing and maintaining it. I'd only wish it would jump right at me by coloring the whole bar instead of a corner of the screen.
Les alle 3 vurderinger

Bidragsytere og utviklere

“Vis miljøtypen på verktøyraden i admin” er programvare med åpen kildekode. Følgende personer har bidratt til denne utvidelsen.

Bidragsytere

“Vis miljøtypen på verktøyraden i admin” har blitt oversatt til 1 språk. Takk til oversetterne for deres bidrag.

Oversett “Vis miljøtypen på verktøyraden i admin” til ditt språk.

Interessert i utvikling?

Bla gjennom koden, sjekk ut SVN-repositoriet, eller abonner på utviklingsloggen med RSS.

Endringslogg

1.1

  • General code reorg
  • Added support for QA environment
  • minor CSS fixes
  • changed the Text Domain (for localization) to ‘show-environment-in-admin-bar’, so that the translate.wordpress.org service can be used.

1.0.1

  • Correct formatting in readme.txt
  • Removed GitHub Plugin URL reader

1.0

  • Initial release on .org