Changeset 14118
- Timestamp:
- 04/16/2010 09:45:16 PM (15 years ago)
- Location:
- trunk/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r14059 r14118 1162 1162 $thumb_url = false; 1163 1163 1164 $default_args = array( 'errors' => null, 'send' => true, 'delete' => true, 'toggle' => true, 'show_title' => true );1164 $default_args = array( 'errors' => null, 'send' => post_type_supports(get_post_type($_GET['post_id']), 'editor'), 'delete' => true, 'toggle' => true, 'show_title' => true ); 1165 1165 $args = wp_parse_args( $args, $default_args ); 1166 1166 extract( $args, EXTR_SKIP ); … … 1993 1993 */ 1994 1994 function type_url_form_image() { 1995 1996 1995 if ( !apply_filters( 'disable_captions', '' ) ) { 1997 1996 $caption = ' … … 2062 2061 <p class="help">' . __('Enter a link URL or click above for presets.') . '</p></td> 2063 2062 </tr> 2064 2065 <tr> 2066 <td></td> 2067 <td> 2068 <input type="button" class="button" id="go_button" style="color:#bbb;" onclick="addExtImage.insert()" value="' . esc_attr__('Insert into Post') . '" /> 2069 </td> 2070 </tr> 2063 ' . _insert_into_post_button('image') . ' 2071 2064 </tbody></table> 2072 2065 '; … … 2099 2092 </tr> 2100 2093 <tr><td></td><td class="help">' . __('Link text, e.g. “Still Alive by Jonathan Coulton”') . '</td></tr> 2101 <tr> 2102 <td></td> 2103 <td> 2104 <input type="submit" class="button" name="insertonlybutton" value="' . esc_attr__('Insert into Post') . '" /> 2105 </td> 2106 </tr> 2094 ' . _insert_into_post_button('audio') . ' 2107 2095 </tbody></table> 2108 2096 '; … … 2134 2122 </tr> 2135 2123 <tr><td></td><td class="help">' . __('Link text, e.g. “Lucy on YouTube“') . '</td></tr> 2136 <tr> 2137 <td></td> 2138 <td> 2139 <input type="submit" class="button" name="insertonlybutton" value="' . esc_attr__('Insert into Post') . '" /> 2140 </td> 2141 </tr> 2124 ' . _insert_into_post_button('video') . ' 2142 2125 </tbody></table> 2143 2126 '; … … 2169 2152 </tr> 2170 2153 <tr><td></td><td class="help">' . __('Link text, e.g. “Ransom Demands (PDF)”') . '</td></tr> 2154 ' . _insert_into_post_button('file') . ' 2155 </tbody></table> 2156 '; 2157 } 2158 2159 2160 function _insert_into_post_button($type) { 2161 if ( !post_type_supports(get_post_type($_GET['post_id']), 'editor') ) 2162 return ''; 2163 2164 if ( 'image' == $type ) 2165 return ' 2166 <tr> 2167 <td></td> 2168 <td> 2169 <input type="button" class="button" id="go_button" style="color:#bbb;" onclick="addExtImage.insert()" value="' . esc_attr__('Insert into Post') . '" /> 2170 </td> 2171 </tr> 2172 '; 2173 2174 return ' 2171 2175 <tr> 2172 2176 <td></td> … … 2175 2179 </td> 2176 2180 </tr> 2177 </tbody></table> 2178 '; 2181 '; 2179 2182 } 2180 2183 -
trunk/wp-admin/includes/post.php
r14015 r14118 1145 1145 global $content_width, $_wp_additional_image_sizes; 1146 1146 1147 $set_thumbnail_link = '<p class="hide-if-no-js"><a href="' . get_upload_iframe_src('image') . '" id="set-post-thumbnail" class="thickbox">%s</a></p>';1147 $set_thumbnail_link = '<p class="hide-if-no-js"><a title="' . esc_attr__( 'Set featured image' ) . '" href="' . get_upload_iframe_src('image') . '" id="set-post-thumbnail" class="thickbox">%s</a></p>'; 1148 1148 $content = sprintf($set_thumbnail_link, esc_html__( 'Set featured image' )); 1149 1149
Note: See TracChangeset
for help on using the changeset viewer.