Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add URL helper text (resolves #311) #333

Merged
merged 1 commit into from
Mar 31, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions includes/functions/metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ function register_fields() {
'label' => __( 'Link to resource', 'coop-library-framework' ),
'name' => 'lc_resource_permanent_link',
'type' => 'url',
'instructions' => __( 'Web address to access the resource. This information is required.', 'coop-library-framework' ),
'instructions' => __( 'Web address to access the resource (must begin with http:// or https://). This information is required.', 'coop-library-framework' ),
'required' => 1,
'conditional_logic' => 0,
'wrapper' => array(
Expand Down Expand Up @@ -846,7 +846,7 @@ function register_fields() {
'label' => __( 'Publication link', 'coop-library-framework' ),
'name' => 'lc_resource_publication_link',
'type' => 'url',
'instructions' => __( 'Web address for the publication.', 'coop-library-framework' ),
'instructions' => __( 'Web address for the publication (must begin with http:// or https://).', 'coop-library-framework' ),
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
Expand Down Expand Up @@ -907,7 +907,7 @@ function register_fields() {
'label' => __( 'Publisher link', 'coop-library-framework' ),
'name' => 'lc_resource_publisher_link',
'type' => 'url',
'instructions' => __( 'Web address for the publisher.', 'coop-library-framework' ),
'instructions' => __( 'Web address for the publisher (must begin with http:// or https://).', 'coop-library-framework' ),
'required' => 0,
'conditional_logic' => 0,
'wrapper' => array(
Expand Down Expand Up @@ -1112,7 +1112,7 @@ function register_fields() {
'label' => __( 'Perma.cc link', 'coop-library-framework' ),
'name' => 'perma_cc_link',
'type' => 'url',
'instructions' => '',
'instructions' => 'Must begin with http:// or https://',
'required' => 1,
'conditional_logic' => 0,
'wrapper' => array(
Expand Down Expand Up @@ -1156,7 +1156,7 @@ function register_fields() {
'label' => __( 'Internet Archive link', 'coop-library-framework' ),
'name' => 'wayback_machine_link',
'type' => 'url',
'instructions' => '',
'instructions' => __( 'Must begin with http:// or https://', 'coop-library' ),
'required' => 1,
'conditional_logic' => 0,
'wrapper' => array(
Expand Down