Changeset 40835
- Timestamp:
- 05/25/2017 02:58:21 AM (8 years ago)
- Location:
- trunk/src/wp-includes/widgets
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-media-audio.php
r40812 r40835 65 65 'enum' => array( 'none', 'auto', 'metadata' ), 66 66 'default' => 'none', 67 'description' => __( 'Preload' ), 67 68 ), 68 69 'loop' => array( 69 70 'type' => 'boolean', 70 71 'default' => false, 72 'description' => __( 'Loop' ), 71 73 ), 72 74 ) -
trunk/src/wp-includes/widgets/class-wp-widget-media-image.php
r40812 r40835 64 64 'enum' => array_merge( get_intermediate_image_sizes(), array( 'full', 'custom' ) ), 65 65 'default' => 'medium', 66 'description' => __( 'Size' ), 66 67 ), 67 68 'width' => array( // Via 'customWidth', only when size=custom; otherwise via 'width'. … … 69 70 'minimum' => 0, 70 71 'default' => 0, 72 'description' => __( 'Width' ), 71 73 ), 72 74 'height' => array( // Via 'customHeight', only when size=custom; otherwise via 'height'. … … 74 76 'minimum' => 0, 75 77 'default' => 0, 78 'description' => __( 'Height' ), 76 79 ), 77 80 … … 80 83 'default' => '', 81 84 'sanitize_callback' => 'wp_kses_post', 85 'description' => __( 'Caption' ), 82 86 'should_preview_update' => false, 83 87 ), … … 86 90 'default' => '', 87 91 'sanitize_callback' => 'sanitize_text_field', 92 'description' => __( 'Alternative Text' ), 88 93 ), 89 94 'link_type' => array( … … 92 97 'default' => 'none', 93 98 'media_prop' => 'link', 99 'description' => __( 'Link To' ), 94 100 'should_preview_update' => false, 95 101 ), … … 99 105 'format' => 'uri', 100 106 'media_prop' => 'linkUrl', 107 'description' => __( 'URL' ), 101 108 'should_preview_update' => false, 102 109 ), … … 106 113 'sanitize_callback' => array( $this, 'sanitize_token_list' ), 107 114 'media_prop' => 'extraClasses', 115 'description' => __( 'Image CSS Class' ), 108 116 'should_preview_update' => false, 109 117 ), … … 114 122 'media_prop' => 'linkClassName', 115 123 'should_preview_update' => false, 124 'description' => __( 'Link CSS Class' ), 116 125 ), 117 126 'link_rel' => array( … … 120 129 'sanitize_callback' => array( $this, 'sanitize_token_list' ), 121 130 'media_prop' => 'linkRel', 122 'should_preview_update' => false, 123 ), 124 'link_target_blank' => array( // Via 'linkTargetBlank' property. 131 'description' => __( 'Link Rel' ), 132 'should_preview_update' => false, 133 ), 134 'link_target_blank' => array( 125 135 'type' => 'boolean', 126 136 'default' => false, 127 137 'media_prop' => 'linkTargetBlank', 138 'description' => __( 'Open link in a new tab' ), 128 139 'should_preview_update' => false, 129 140 ), … … 133 144 'sanitize_callback' => 'sanitize_text_field', 134 145 'media_prop' => 'title', 146 'description' => __( 'Image Title Attribute' ), 135 147 'should_preview_update' => false, 136 148 ), -
trunk/src/wp-includes/widgets/class-wp-widget-media-video.php
r40812 r40835 66 66 'enum' => array( 'none', 'auto', 'metadata' ), 67 67 'default' => 'metadata', 68 'description' => __( 'Preload' ), 68 69 'should_preview_update' => false, 69 70 ), … … 71 72 'type' => 'boolean', 72 73 'default' => false, 74 'description' => __( 'Loop' ), 73 75 'should_preview_update' => false, 74 76 ),
Note: See TracChangeset
for help on using the changeset viewer.