Changeset 53200
- Timestamp:
- 04/17/2022 05:45:05 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/meta-boxes.php
r53199 r53200 387 387 * @since 3.5.0 388 388 * 389 * @param WP_Post $post 389 * @param WP_Post $post Current post object. 390 390 */ 391 391 function attachment_submit_meta_box( $post ) { … … 467 467 * @since 3.1.0 468 468 * 469 * @param WP_Post $post Post object.469 * @param WP_Post $post Current post object. 470 470 * @param array $box { 471 471 * Post formats meta box arguments. … … 512 512 * @todo Create taxonomy-agnostic wrapper for this. 513 513 * 514 * @param WP_Post $post Post object.514 * @param WP_Post $post Current post object. 515 515 * @param array $box { 516 516 * Tags meta box arguments. … … 575 575 * @todo Create taxonomy-agnostic wrapper for this. 576 576 * 577 * @param WP_Post $post Post object.577 * @param WP_Post $post Current post object. 578 578 * @param array $box { 579 579 * Categories meta box arguments. … … 697 697 * @since 2.6.0 698 698 * 699 * @param WP_Post $post 699 * @param WP_Post $post Current post object. 700 700 */ 701 701 function post_excerpt_meta_box( $post ) { … … 719 719 * @since 2.6.0 720 720 * 721 * @param WP_Post $post 721 * @param WP_Post $post Current post object. 722 722 */ 723 723 function post_trackback_meta_box( $post ) { … … 760 760 * @since 2.6.0 761 761 * 762 * @param WP_Post $post 762 * @param WP_Post $post Current post object. 763 763 */ 764 764 function post_custom_meta_box( $post ) { … … 794 794 * @since 2.6.0 795 795 * 796 * @param WP_Post $post 796 * @param WP_Post $post Current post object. 797 797 */ 798 798 function post_comment_status_meta_box( $post ) { … … 816 816 * @since 3.1.0 817 817 * 818 * @param WP_Post $post WP_Post object ofthe current post.818 * @param WP_Post $post WP_Post object for the current post. 819 819 */ 820 820 do_action( 'post_comment_status_meta_box-options', $post ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores … … 829 829 * @since 3.0.0 830 830 * 831 * @param array $result table header rows831 * @param array $result Table header rows. 832 832 * @return array 833 833 */ … … 842 842 * @since 2.8.0 843 843 * 844 * @param WP_Post $post 844 * @param WP_Post $post Current post object. 845 845 */ 846 846 function post_comment_meta_box( $post ) { … … 883 883 * @since 2.6.0 884 884 * 885 * @param WP_Post $post 885 * @param WP_Post $post Current post object. 886 886 */ 887 887 function post_slug_meta_box( $post ) { … … 900 900 * @global int $user_ID 901 901 * 902 * @param WP_Post $post 902 * @param WP_Post $post Current post object. 903 903 */ 904 904 function post_author_meta_box( $post ) { … … 925 925 * @since 2.6.0 926 926 * 927 * @param WP_Post $post 927 * @param WP_Post $post Current post object. 928 928 */ 929 929 function post_revisions_meta_box( $post ) { … … 940 940 * @since 2.7.0 941 941 * 942 * @param WP_Post $post 942 * @param WP_Post $post Current post object. 943 943 */ 944 944 function page_attributes_meta_box( $post ) { … … 1037 1037 * @since 2.7.0 1038 1038 * 1039 * @param object $link 1039 * @param object $link Current link object. 1040 1040 */ 1041 1041 function link_submit_meta_box( $link ) { … … 1113 1113 * @since 2.6.0 1114 1114 * 1115 * @param object $link 1115 * @param object $link Current link object. 1116 1116 */ 1117 1117 function link_categories_meta_box( $link ) { … … 1160 1160 * @since 2.6.0 1161 1161 * 1162 * @param object $link 1162 * @param object $link Current link object. 1163 1163 */ 1164 1164 function link_target_meta_box( $link ) { … … 1185 1185 * @since 1.0.1 1186 1186 * 1187 * @global object $link 1188 * 1189 * @param string $xfn_relationship 1190 * @param string $xfn_value 1191 * @param mixed $deprecated Never used. 1187 * @global object $link Current link object. 1188 * 1189 * @param string $xfn_relationship XFN relationship category. Possible values are: 1190 * 'friendship', 'physical', 'professional', 1191 * 'geographical', 'family', 'romantic', 'identity'. 1192 * @param string $xfn_value Optional. The XFN value to mark as checked 1193 * if it matches the current link's relationship. 1194 * @param mixed $deprecated Deprecated. Not used. 1192 1195 */ 1193 1196 function xfn_check( $xfn_relationship, $xfn_value = '', $deprecated = '' ) { … … 1201 1204 $link_rels = preg_split( '/\s+/', $link_rel ); 1202 1205 1203 // Mark the specified value as checked if it matches the linkrelationship.1206 // Mark the specified value as checked if it matches the current link's relationship. 1204 1207 if ( '' !== $xfn_value && in_array( $xfn_value, $link_rels, true ) ) { 1205 1208 echo ' checked="checked"'; … … 1207 1210 1208 1211 if ( '' === $xfn_value ) { 1209 // Mark the 'none' value as checked if the link does not match the specified relationship.1212 // Mark the 'none' value as checked if the current link does not match the specified relationship. 1210 1213 if ( 'family' === $xfn_relationship 1211 1214 && ! array_intersect( $link_rels, array( 'child', 'parent', 'sibling', 'spouse', 'kin' ) ) … … 1226 1229 } 1227 1230 1228 // Mark the 'me' value as checked if it matches the linkrelationship.1231 // Mark the 'me' value as checked if it matches the current link's relationship. 1229 1232 if ( 'identity' === $xfn_relationship 1230 1233 && in_array( 'me', $link_rels, true ) … … 1240 1243 * @since 2.6.0 1241 1244 * 1242 * @param object $link 1245 * @param object $link Current link object. 1243 1246 */ 1244 1247 function link_xfn_meta_box( $link ) { … … 1358 1361 * @since 2.6.0 1359 1362 * 1360 * @param object $link 1363 * @param object $link Current link object. 1361 1364 */ 1362 1365 function link_advanced_meta_box( $link ) { … … 1399 1402 * @since 2.9.0 1400 1403 * 1401 * @param WP_Post $post Apost object.1404 * @param WP_Post $post Current post object. 1402 1405 */ 1403 1406 function post_thumbnail_meta_box( $post ) { … … 1411 1414 * @since 3.9.0 1412 1415 * 1413 * @param WP_Post $post Apost object.1416 * @param WP_Post $post Current post object. 1414 1417 */ 1415 1418 function attachment_id3_data_meta_box( $post ) {
Note: See TracChangeset
for help on using the changeset viewer.