Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Kostas,

    It seems that there is some conflict due to the fact that I use the WordPress function get_the_title() on slashadmin.php and the other plugin has a function which modifies it on line 1080.

    I believe that the following should work:

    go to slashadmin.php and replace this:

    function slashadmin_get_pages( $multiple = false ) {
    	$page_ids = get_all_page_ids();
    	$pages    = ( $multiple ) ? array() : array( 'none' => __( 'None', 'slash-admin' ) );
    	foreach ( $page_ids as $id ) {
    		$title        = get_the_title( $id );
    		$pages[ $id ] = $title;
    	}
    
    	return $pages;
    }

    with that:

    
    function slashadmin_get_pages( $multiple = false ) {
    	$get_pages = get_pages();
    	$pages     = ( $multiple ) ? array() : array( 'none' => __( 'None', 'slash-admin' ) );
    	foreach ( $get_pages as $page ) {
    		$pages[ $page->ID ] = $page->post_title;
    	}
    	return $pages;
    }
    Thread Starter Kostas

    (@kostas-r)

    Thanks for your fast response! I did it and activated the plugin successfully without getting a blank page in the admin area.

    Do you plan to make this change permanent on your next update, or add an exception to allow compatibility with said plugin?

    Kind Regards,
    Kostas

    Indeed, I will make a few more tests first and I will release an update, hopefully within the next few days.

    Thread Starter Kostas

    (@kostas-r)

    Awesome! Have a great week.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Crossposted] Conflict with Paypal for Woocommerce’ is closed to new replies.