Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
programmieren:wordpress:configphp_einstellungen [2020/03/02 09:53] – [Debug Mode aktivieren] jgehrkeprogrammieren:wordpress:configphp_einstellungen [2022/12/17 12:28] (current) – external edit 127.0.0.1
Line 7: Line 7:
 <code php> <code php>
 define( 'AUTOMATIC_UPDATER_DISABLED', true ); define( 'AUTOMATIC_UPDATER_DISABLED', true );
 +
 + # Disable all core updates:
 + define( 'WP_AUTO_UPDATE_CORE', false );
 +
 + # Enable all core updates, including minor and major:
 + define( 'WP_AUTO_UPDATE_CORE', true );
 +
 + # Enable core updates for minor releases (default):
 + define( 'WP_AUTO_UPDATE_CORE', 'minor' );
 </code> </code>
  
Line 27: Line 36:
  */  */
 define( 'WP_DEBUG', true ); define( 'WP_DEBUG', true );
-define( 'WP_DISABLE_FATAL_ERROR_HANDLER', true );   // 5.2 and later define( 'WP_DEBUG', true );+define( 'WP_DEBUG_LOG', true );
 define( 'WP_DEBUG_DISPLAY', true );  define( 'WP_DEBUG_DISPLAY', true ); 
 </code> </code>
Line 47: Line 56:
 define( 'WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . '/path/to/wordpress' ); define( 'WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . '/path/to/wordpress' );
 </code> </code>
 +
 +===== Revisionen der Posts deaktivieren oder beschränken / limitieren=====
 +
 +Mit dieser Einstellung, werden Revisionen deaktiviert, die sonst nur die Datenbank unnötig voll machen.
 +
 +<code php>
 +define( 'WP_POST_REVISIONS', false );
 +</code>
 +
 +Um die Anzahl an gespeicherten Revisionen in Wordpress einzugrenzen, kann an diese Stelle auch eine Zahl eingetragen werden
 +
 +<code php>
 +define( 'WP_POST_REVISIONS', 10 );
 +</code>
 +
 ===== Upload Folder ändern ===== ===== Upload Folder ändern =====
  

Page Tools