mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 11:14:36 +00:00
Use void instead of null where appropriate when pipe-delimiting @return types. If a @return only contains void, remove it.
See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32568 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -67,7 +67,7 @@ class WP_Scripts extends WP_Dependencies {
|
||||
*
|
||||
* @param string $handle
|
||||
* @param bool $echo
|
||||
* @return bool|string|null
|
||||
* @return bool|string|void
|
||||
*/
|
||||
public function print_scripts_l10n( $handle, $echo = true ) {
|
||||
_deprecated_function( __FUNCTION__, '3.3', 'print_extra_script()' );
|
||||
@@ -77,7 +77,7 @@ class WP_Scripts extends WP_Dependencies {
|
||||
/**
|
||||
* @param string $handle
|
||||
* @param bool $echo
|
||||
* @return bool|string|null
|
||||
* @return bool|string|void
|
||||
*/
|
||||
public function print_extra_script( $handle, $echo = true ) {
|
||||
if ( !$output = $this->get_data( $handle, 'data' ) )
|
||||
|
||||
Reference in New Issue
Block a user