Changeset 48688 for trunk/src/wp-admin/themes.php
- Timestamp:
- 07/29/2020 07:59:30 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/themes.php
r48659 r48688 676 676 $template = ' 677 677 <div class="theme-autoupdate"> 678 <# if ( data.autoupdate ) { #> 679 <button type="button" class="toggle-auto-update button-link" data-slug="{{ data.id }}" data-wp-action="disable"> 680 <span class="dashicons dashicons-update spin hidden" aria-hidden="true"></span><span class="label">' . __( 'Disable auto-updates' ) . '</span> 681 </button> 682 <# } else { #> 683 <button type="button" class="toggle-auto-update button-link" data-slug="{{ data.id }}" data-wp-action="enable"> 684 <span class="dashicons dashicons-update spin hidden" aria-hidden="true"></span><span class="label">' . __( 'Enable auto-updates' ) . '</span> 685 </button> 678 <# if ( data.autoupdate.supported ) { #> 679 <# if ( data.autoupdate.forced === false ) { #> 680 ' . __( 'Auto-updates disabled' ) . ' 681 <# } else if ( data.autoupdate.forced ) { #> 682 ' . __( 'Auto-updates enabled' ) . ' 683 <# } else if ( data.autoupdate.enabled ) { #> 684 <button type="button" class="toggle-auto-update button-link" data-slug="{{ data.id }}" data-wp-action="disable"> 685 <span class="dashicons dashicons-update spin hidden" aria-hidden="true"></span><span class="label">' . __( 'Disable auto-updates' ) . '</span> 686 </button> 687 <# } else { #> 688 <button type="button" class="toggle-auto-update button-link" data-slug="{{ data.id }}" data-wp-action="enable"> 689 <span class="dashicons dashicons-update spin hidden" aria-hidden="true"></span><span class="label">' . __( 'Enable auto-updates' ) . '</span> 690 </button> 691 <# } #> 686 692 <# } #> 687 693 <# if ( data.hasUpdate ) { #> 688 <# if ( data.autoupdate ) { #>694 <# if ( data.autoupdate.supported && data.autoupdate.enabled ) { #> 689 695 <span class="auto-update-time"> 690 696 <# } else { #>
Note: See TracChangeset
for help on using the changeset viewer.