« first day (1815 days earlier)      last day (3129 days later) » 

4:52 AM
@MayeenulIslam Depends how you are using it. If it is a public form. You can add the post id as hidden field and do the nonce check on validation.
 
 
3 hours later…
7:43 AM
@Sisir I made a system of reporting abusive posts using postmeta. I'm listing all the posts that are reported checking by their meta. Where I made a custom function clear_offense() following get_delete_post_link(). The function, like the delete link, generating a nonce URL with hidden Post ID.
Now, in back end, when the "Clear Offense" button will be clicked I will get a nonce URL using this:
$action = 'clear-offense';

$clear_link = add_query_arg( 'action', $action, admin_url( 'admin.php?page=reported-posts' ) );

return apply_filters( 'get_clear_offense_link', wp_nonce_url( $clear_link, "$action-post_{$post->ID}" ), $post->ID );
I made a function to handle the click:
function clear_the_offense( $id = 0 ) {
	if( !is_admin() )
		return;

	if( !isset($_GET['action']) || $_GET['action'] !== 'clear-offense' )
		return;

	if ( !current_user_can( 'edit_posts' ) )
		return;

	delete_post_meta( $post_id, "reported" );
}
add_action( 'admin_init', 'clear_the_offense' );
But as you can see there's no way for me to pass a post ID for checking the nonce. :(
How can I solve this?
 
 
1 hour later…
9:07 AM
@Sisir Just got it. It's dead simple. Anyway, thanks for responding. :)
 
 
3 hours later…
12:08 PM
If there was a "crappiest plugin competition", my vote will go to ACF. It is amazing how much time you need to spend if you want to do something not very complex that is not built-in in it.
 
The problem is that from the outside and to a casual user there is nothing that really comes close.
 
yes, I am actually thinking to suggest a face lift to the custome fields, but I will probably forget about it in few days :(
 
12:51 PM
Perfect nightmare: Avada + ACF + WPML
4
 
lol
Never tried Avada. But ACF and WPML - been there, done that. True words...
 
Five different sliders … nuff said
 
Ouch.
As I only do custom themes at least that thing never happened to me before...
 
 
1 hour later…
2:09 PM
Heads up, WooCommerce + All in One WP Security = Fatal Errors when users try to unlock their account.
 
2:58 PM
lol
ok, very sad lol
 
I've just met The Isolator, again: carlalexander.ca/introduction-wordpress-unit-testing
2
 
 
6 hours later…
8:49 PM
@kraftner I know site builders who are perfectly happy just using it too, just a matter of right tool for the job
 

« first day (1815 days earlier)      last day (3129 days later) »