Skip to content

Commit 8145a8d

Browse files
Code style and documentation
1 parent 49317b2 commit 8145a8d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/ACF_Field_Unique_ID.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function() {
2323
}
2424

2525
/**
26-
* Initializes the field.
26+
* Initialize the field.
2727
*/
2828
public function __construct() {
2929
$this->name = 'unique_id';
@@ -34,12 +34,13 @@ public function __construct() {
3434
}
3535

3636
/**
37-
* Renders the HTML field.
37+
* Render the HTML field.
3838
*
3939
* @param array $field The field data.
4040
*/
4141
public function render_field( $field ) {
42-
printf( '<input type="text" name="%s" value="%s" readonly>',
42+
printf(
43+
'<input type="text" name="%s" value="%s" readonly>',
4344
esc_attr( $field['name'] ),
4445
esc_attr( $field['value'] )
4546
);
@@ -48,8 +49,6 @@ public function render_field( $field ) {
4849
/**
4950
* Define the unique ID if one does not already exist.
5051
*
51-
* @internal This filter is applied to the value before it is saved to the database.
52-
*
5352
* @param string $value The field value.
5453
* @param int $post_id The post ID.
5554
* @param array $field The field data.

0 commit comments

Comments
 (0)