638 | | remove_action( 'media_buttons', 'media_buttons' ); |
639 | | add_action( 'media_buttons', 'press_this_media_buttons' ); |
640 | | function press_this_media_buttons() { |
641 | | _e( 'Add:' ); |
642 | | |
643 | | if ( current_user_can('upload_files') ) { |
644 | | ?> |
645 | | <a id="photo_button" title="<?php esc_attr_e('Insert an Image'); ?>" href="#"> |
646 | | <img alt="<?php esc_attr_e('Insert an Image'); ?>" src="<?php echo esc_url( admin_url( 'images/media-button-image.gif?ver=20100531' ) ); ?>"/></a> |
647 | | <?php |
648 | | } |
649 | | ?> |
650 | | <a id="video_button" title="<?php esc_attr_e('Embed a Video'); ?>" href="#"><img alt="<?php esc_attr_e('Embed a Video'); ?>" src="<?php echo esc_url( admin_url( 'images/media-button-video.gif?ver=20100531' ) ); ?>"/></a> |
651 | | <?php |
652 | | } |
653 | | |