Add link to documentation to Downloads section (#41844)

* Modify Downloads description

* Remove text decoration

* Add changelogs

* Modify translators texts

* Fix indenting

* Remove link style

---------

Co-authored-by: Fernando Marichal <fernandomarichal@fernandos-mbp.lan>
This commit is contained in:
Fernando Marichal 2023-12-05 16:59:32 -03:00 committed by GitHub
parent 8732330ba9
commit 6ea7a48dbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 2 deletions

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
Add link to documentation to Downloads section #41844

View File

@ -192,7 +192,12 @@ class ProductVariationTemplate extends AbstractProductFormTemplate implements Pr
'order' => 40,
'attributes' => array(
'title' => __( 'Downloads', 'woocommerce' ),
'description' => __( "Add any files you'd like to make available for the customer to download after purchasing, such as instructions or warranty info.", 'woocommerce' ),
'description' => sprintf(
/* translators: %1$s: Downloads settings link opening tag. %2$s: Downloads settings link closing tag. */
__( 'Add any files you\'d like to make available for the customer to download after purchasing, such as instructions or warranty info. Store-wide updates can be managed in your %1$sproduct settings%2$s.', 'woocommerce' ),
'<a href="' . admin_url( 'admin.php?page=wc-settings&tab=products&section=downloadable' ) . '" target="_blank" rel="noreferrer">',
'</a>'
),
),
)
)->add_block(

View File

@ -394,7 +394,12 @@ class SimpleProductTemplate extends AbstractProductFormTemplate implements Produ
'order' => 50,
'attributes' => array(
'title' => __( 'Downloads', 'woocommerce' ),
'description' => __( "Add any files you'd like to make available for the customer to download after purchasing, such as instructions or warranty info.", 'woocommerce' ),
'description' => sprintf(
/* translators: %1$s: Downloads settings link opening tag. %2$s: Downloads settings link closing tag. */
__( 'Add any files you\'d like to make available for the customer to download after purchasing, such as instructions or warranty info. Store-wide updates can be managed in your %1$sproduct settings%2$s.', 'woocommerce' ),
'<a href="' . admin_url( 'admin.php?page=wc-settings&tab=products&section=downloadable' ) . '" target="_blank" rel="noreferrer">',
'</a>'
),
),
'hideConditions' => array(
array(