File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1111 *
1212 * @since 2.0.0
1313 *
14- * @return int|WP_Error Value 0 or WP_Error on failure . The link ID on success .
14+ * @return int The link ID on success . The value 0 on failure .
1515 */
1616function add_link () {
1717 return edit_link ();
@@ -23,7 +23,7 @@ function add_link() {
2323 * @since 2.0.0
2424 *
2525 * @param int $link_id Optional. ID of the link to edit. Default 0.
26- * @return int|WP_Error Value 0 or WP_Error on failure . The link ID on success .
26+ * @return int The link ID on success . The value 0 on failure .
2727 */
2828function edit_link ( $ link_id = 0 ) {
2929 if ( ! current_user_can ( 'manage_links ' ) ) {
@@ -169,7 +169,7 @@ function get_link_to_edit( $link ) {
169169 * If empty, uses default link category.
170170 * }
171171 * @param bool $wp_error Optional. Whether to return a WP_Error object on failure. Default false.
172- * @return int|WP_Error Value 0 or WP_Error on failure . The link ID on success .
172+ * @return int|WP_Error The link ID on success . The value 0 or WP_Error on failure .
173173 */
174174function wp_insert_link ( $ linkdata , $ wp_error = false ) {
175175 global $ wpdb ;
@@ -295,7 +295,7 @@ function wp_set_link_cats( $link_id = 0, $link_categories = array() ) {
295295 * @since 2.0.0
296296 *
297297 * @param array $linkdata Link data to update. See wp_insert_link() for accepted arguments.
298- * @return int|WP_Error Value 0 or WP_Error on failure . The updated link ID on success .
298+ * @return int The updated link ID on success . The value 0 on failure .
299299 */
300300function wp_update_link ( $ linkdata ) {
301301 $ link_id = (int ) $ linkdata ['link_id ' ];
You can’t perform that action at this time.
0 commit comments