Skip to content

Commit

Permalink
cleanup for GH
Browse files Browse the repository at this point in the history
  • Loading branch information
robincornett committed Sep 24, 2015
1 parent ab06a1b commit ff1f433
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

// silence is golden
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "simple-social-sharing",
"name": "scriptless-social-sharing",
"version": "0.1.0",
"private": true,
"license": "GPL-2.0",
Expand Down
7 changes: 6 additions & 1 deletion scriptless-social-sharing.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
* GitHub Branch: master
*/

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}

add_action( 'wp_enqueue_scripts', 'scriptlesssocialsharing_style' );
function scriptlesssocialsharing_style() {
$css_file = apply_filters( 'scriptlesssocialsharing_default_css', plugin_dir_url( __FILE__ ) . 'scriptlesssocialsharing-style.css' );
Expand Down Expand Up @@ -52,7 +57,7 @@ function scriptlesssocialsharing_make_buttons() {
$title = the_title_attribute( 'echo=0' );
$title = str_replace( ' ', '+', $title );
$permalink = get_the_permalink();
$twitter = apply_filters( 'scriptlesssocialsharing_twitter_handle', 'robincornett' );
$twitter = apply_filters( 'scriptlesssocialsharing_twitter_handle', 'twitter' );
$home = home_url();
$featured_image = get_post_thumbnail_id();
$image_source = wp_get_attachment_image_src( $featured_image, 'large', true );
Expand Down

0 comments on commit ff1f433

Please sign in to comment.