WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Easy Digital Downloads] Bug? Can't set correct pages on General Settings

[Plugin: Easy Digital Downloads] Bug? Can't set correct pages on General Settings

  • I couldn’t set ‘Purchase Page’ and ‘Success Page’ on admin’s General Settings page.

    Because, there HTML source are like below..

    <select id="edd_settings_general[success_page]" name="edd_settings_general[success_page]">
    <option value="0"></option>
    <option value="1" selected="selected">Purchase History</option>
    <option value="2">お会計</option>
    <option value="3">プラグイン利用許諾書</option>
    <option value="4">会社概要</option>
    <option value="5">購入確認画面</option></select>

    All values of option are not page ID.

    Then, I changed some lines (27-33) on ‘register-settings.php’.
    [Before:]

    $pages_options = array();
    	if($pages) {
    		foreach ( $pages as $page ) {
    		  	$pages_options[$page->ID] = $page->post_title;
    		}
    	}
    	array_unshift($pages_options, ''); // blank option

    [After:]

    $pages_options = array('');
    	if($pages) {
    		foreach ( $pages as $page ) {
    		  	$pages_options[$page->ID] = $page->post_title;
    		}
    	}
    	//array_unshift($pages_options, ''); // blank option

    That changing is correct?

    Thanks

    http://wordpress.org/extend/plugins/easy-digital-downloads/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Easy Digital Downloads] Bug? Can't set correct pages on General Settings’ is closed to new replies.