Skip to content

Commit

Permalink
Updated constant GIVE_FORMS_SLUG to GIVE_SLUG with support for backwa…
Browse files Browse the repository at this point in the history
…rds compatibility.

Fixes #199
  • Loading branch information
devin committed Aug 31, 2015
1 parent 6ea2c1f commit 04e1ee2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion includes/post-types.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ function give_setup_post_types() {

$give_forms_archives = give_get_option( 'disable_forms_archives' ) !== 'on' ? true : false;

$give_forms_slug = defined( 'GIVE_FORMS_SLUG' ) ? GIVE_FORMS_SLUG : 'donations';
$give_forms_slug = defined( 'GIVE_SLUG' ) ? GIVE_SLUG : 'donations';
//support for old 'GIVE_FORMS_SLUG' constant
if ( defined( 'GIVE_FORMS_SLUG' ) ) {
$give_forms_slug = GIVE_FORMS_SLUG;
}

$give_forms_rewrite = defined( 'GIVE_DISABLE_FORMS_REWRITE' ) && GIVE_DISABLE_FORMS_REWRITE ? false : array(
'slug' => $give_forms_slug,
Expand Down

0 comments on commit 04e1ee2

Please sign in to comment.