danielbachhuber/Co-Authors-Plus — Issue #12: Presentation constants are defined too early
Author: danielbachhuber
Created: 2012-02-18 18:26:20+00:00
State: open
Labels: Bugs

To allow the changing of how the co-authors are listed, we have the following at the top of the plugin:

```if( ! defined( 'COAUTHORS_DEFAULT_BEFORE' ) )
define( 'COAUTHORS_DEFAULT_BEFORE', '' );

if( ! defined( 'COAUTHORS_DEFAULT_BETWEEN' ) )
define( 'COAUTHORS_DEFAULT_BETWEEN', ', ' );

if( ! defined( 'COAUTHORS_DEFAULT_BETWEEN_LAST' ) )
define( 'COAUTHORS_DEFAULT_BETWEEN_LAST', __( ' and ', 'co-authors-plus' ) );

if( ! defined( 'COAUTHORS_DEFAULT_AFTER' ) )
define( 'COAUTHORS_DEFAULT_AFTER', '' );```

This means the user has to define these constants in an mu-plugin because their theme is loaded too late. We should just make these values filterable, and use the constants if they exist for backwards compat.