mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Add missing doc blocks to wp-admin/includes/*.
Fix some egregious uses of tabbing. Some functions can simply return `apply_filters(...)` instead of setting a variable that is immediately returned. See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32654 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -77,7 +77,7 @@ function get_default_link_to_edit() {
|
||||
* @global wpdb $wpdb
|
||||
*
|
||||
* @param int $link_id ID of the link to delete
|
||||
* @return bool True
|
||||
* @return true
|
||||
*/
|
||||
function wp_delete_link( $link_id ) {
|
||||
global $wpdb;
|
||||
@@ -140,7 +140,7 @@ function get_link_to_edit( $link_id ) {
|
||||
* @global wpdb $wpdb
|
||||
*
|
||||
* @param array $linkdata Elements that make up the link to insert.
|
||||
* @param bool $wp_error Optional. If true return WP_Error object on failure.
|
||||
* @param bool $wp_error Optional. If true return WP_Error object on failure.
|
||||
* @return int|WP_Error Value 0 or WP_Error on failure. The link ID on success.
|
||||
*/
|
||||
function wp_insert_link( $linkdata, $wp_error = false ) {
|
||||
|
||||
Reference in New Issue
Block a user