Timeline for Get comment content by comment ID
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 16, 2014 at 22:06 | comment | added | Morgan Estes |
@ChristopherRoss Good idea. I've updated my code to check for a valid $comment , plus typecast the param into an int up front.
|
|
Jan 16, 2014 at 22:04 | history | edited | Morgan Estes | CC BY-SA 3.0 |
Added docblock and error checking. props @christopher-ross
|
Jan 16, 2014 at 21:50 | comment | added | Christopher Ross | Morgan, the only thing I'd add to that is a check to see if the $comment is valid before returning (to avoid an error message). | |
Jan 16, 2014 at 20:32 | comment | added | Morgan Estes | Glad it worked! The prefix is just there so it doesn't conflict with any other function that may have the same name. I've been bitten by that before, so now I tend to prefix functions I put here with the question number. | |
Jan 16, 2014 at 20:28 | comment | added | Matthew Abrman | Thanks, it worked like a charm once placed into the functions.php file. Is there a specific reason to use the wpse120039 in the front of the function or can I delete it. | |
Jan 16, 2014 at 20:21 | vote | accept | Matthew Abrman | ||
Jan 16, 2014 at 18:46 | history | answered | Morgan Estes | CC BY-SA 3.0 |