Home › Forums › Plugin Support › WP User Frontend Pro › Trash is missing from the backend
This topic contains 30 replies, has 2 voices, and was last updated by Nayem 3 years, 10 months ago.
-
AuthorPosts
-
March 30, 2015 at 3:50 pm #40277
Hello,
Can you please confirm me that from the backend if you delete a post is that appear in the trash?.
March 30, 2015 at 3:53 pm #40278We do not delete any post directly from our plugin it always show in the trash.
March 30, 2015 at 4:54 pm #40285Hey Nayem,
Yes, if I delete from the backend as an Admin, it does appear in the trash.
I do not allow Contributor users into the backend at all so am not currently able to test that option.
Damien
March 30, 2015 at 4:58 pm #40287If you are deleting a post from the frontend as admin is that appear in the trash?.
March 30, 2015 at 6:47 pm #40296Hi Nayem,
If I delete a post as the admin from the frontend, it still does not show in the trash in the backend.
You can see the process here: http://imgur.com/15S1ZzL,QEwP61v,ABaUdC8,oPhVvFW#0
The first image shows the newly created post in the front end.
The second image shows it in the backend.
Once I delete the image, I am receiving the Redirect Loop error which I have not noticed before.
If I then check the backend, the post is gone but there is still no trash can.Hopefully this helps
Damien
March 30, 2015 at 7:21 pm #40301I have tested so many times in my side. If i delete a post from fronted it goes to the trash in the backend. Did you customize anything in our plugin?.
March 31, 2015 at 3:04 pm #40353Hi Nayem,
As far as I recall,the only thing I did with the plugin was add the following to my functions.php to allow multiple post types be displayed in the dashboard. I do not recall amending anything else.
function wpufe_dashboard_post_type( $args ) { $args['post_type'] = array( 'dogs', 'cats', 'others', 'post' ); return $args; } add_filter( 'wpuf_dashboard_query', 'wpufe_dashboard_post_type' );
Damien
March 31, 2015 at 4:51 pm #40356Hello Damien,
Please open Wp user fronted/class/fronted-dashboard.php. In this file you will get this function-
function delete_post()
. Under this function you will get this line- `if ( ($maybe_delete->post_author == $userdata->ID) || current_user_can( ‘delete_others_pages' ) ) {
wp_delete_post( $_REQUEST[‘pid'] );`Please make sure that this line is same as like this line. If there is-wp_delete_post( $_REQUEST[‘pid'], true );` then it will delete the post directly. You have to make sure that this line has no- true.
Thanks.
March 31, 2015 at 5:44 pm #40366Hi Nayem,
Thanks for your continued support.
I have had a look at that line and I have the exact same thing as you.
Click here to see the unedited snippet from the frontend-dashboard.php file.
Damien
March 31, 2015 at 6:06 pm #40370Hello Damien,
If you can then test with the default post type. Everything will be fine there. I have tested so many times in our side. You have customized a post type and the problem is there.
March 31, 2015 at 7:20 pm #40382Hi Nayem,
I have mentioned on a number of occasions that I am trying this with the default post type.
The screen shots I sent were also from the default post type.
Damien
March 31, 2015 at 7:24 pm #40383This reply has been marked as private.March 31, 2015 at 8:49 pm #40394This reply has been marked as private.April 1, 2015 at 4:59 pm #40457Please provide your login details by using this form – http://wedevs.com/provide-login-details/. I will have a look what is going wrong.
Thank you ๐
April 2, 2015 at 3:56 pm #40539Hi Nayem,
I need to set up a test domain first as the site is live, so will do so asap and sent details over.
Thanks again
Damien
-
AuthorPosts
The topic ‘Trash is missing from the backend’ is closed to new replies.