[wp-trac] [WordPress Trac] #35915: Documentation of `get_preview_post_link` declares missing return variable type information
WordPress Trac
noreply at wordpress.org
Sat Mar 12 12:36:22 UTC 2016
#35915: Documentation of `get_preview_post_link` declares missing return variable
type information
--------------------------------------+-----------------------------
Reporter: chris_dev | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version: 4.4
Severity: trivial | Resolution:
Keywords: has-patch has-unit-tests | Focuses: docs
--------------------------------------+-----------------------------
Changes (by swissspidy):
* keywords: needs-patch => has-patch has-unit-tests
* milestone: 4.5 => Future Release
Comment:
@chris_dev Yes, that's what I meant. Thanks for the refreshed patch!
I added some unit tests in [attachment:35915.diff] and changed the return
value to `null` because that's what a void function returns in PHP.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35915#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list