7,484 reputation
1029
bio website
location 127.0.0.1
age
visits member for 3 years, 3 months
seen 2 days ago

I sell sea shells by the sea shore.


May
18
awarded  Mortarboard
May
16
reviewed Approve Use wp_enqueue_scripts, not wp_print_styles?
May
16
revised What's the difference between get_home_path() and ABSPATH?
added 39 characters in body
May
16
reviewed Approve add_rewrite_rule() not working
May
15
answered What's the difference between get_home_path() and ABSPATH?
May
11
revised How to reliably flush rewrite rules on multisite?
added 99 characters in body
May
11
answered How to reliably flush rewrite rules on multisite?
May
1
awarded  Good Answer
Apr
16
reviewed Approve Filter content by custom field and category
Apr
8
reviewed Approve how to create a static front page for my blog in wordpress
Apr
6
comment Programmatically set thumbnail via URL using DOM and XPATH - Where to add ELSEIF
Glad it's working for you now...
Apr
5
awarded  Nice Answer
Apr
4
comment Programmatically set thumbnail via URL using DOM and XPATH - Where to add ELSEIF
Can you try logging the $post_id and $post function arguments within your auto_featured_image_publish_post callback when you both publish a post and try to update an already published post and tell us the result of the log statement? Also I'd suggest removing the first code snippet since it is obsolete and clutters this question thread making it harder to understand.
Apr
3
reviewed Approve Insert attachments from front end form
Mar
22
comment WSoD being caused by this piece of code
@Kreation You need to pass the table name to your ref_access function. Since you are calling this function on a hook, you can either hard-code the table name into the function, or pass the table name as a $_POST array key (insecure). If you have no other logical way to get the table name and you have more than one table, send a hidden field from your form with a non-obvious name and value and use that value to lookup the table name held within an array of table names inside your ref_access function. Come see us in WordPress Development Chat if you are still having problems.
Mar
21
comment WSoD being caused by this piece of code
Try add_action('init', ref_access), you still need to get a handle on your $table variable though. I have no idea what your overall code looks like. Paste a copy to pastebin.
Mar
21
revised WSoD being caused by this piece of code
added 328 characters in body
Mar
21
comment WSoD being caused by this piece of code
Where are you calling ref_access() from? You should pass $table to ref_access($table) but don't forget to add $table variable to the function definition.
Mar
21
revised Avoiding “Usage of a direct database call is discouraged”
added 141 characters in body
Mar
21
comment Avoiding “Usage of a direct database call is discouraged”
Can you post the code snippet that the sniff is being reported on? Also you can create a custom ruleset to negate this sniff under certain conditions.