Plugin Directory

Changeset 1557795


Ignore:
Timestamp:
12/19/2016 06:52:12 PM (9 years ago)
Author:
greatislander
Message:

Release version 0.5.0.

Location:
hypothesis/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • hypothesis/trunk/hypothesis.php

    r1548022 r1557795  
    11<?php
    22/*
    3  Plugin Name: Hypothesis
    4  Plugin URI: http://hypothes.is/
    5  Description: Hypothesis is an open platform for the collaborative evaluation of knowledge. This plugin embeds the necessary scripts in your Wordpress site to enable any user to use Hypothesis without installing any extensions.
    6  Author: The Hypothesis Project and contributors
    7  Version: 0.4.9
    8  Author URI: http://hypothes.is/
    9  Text Domain:     hypothesis
    10  Domain Path:     /languages
    11 
    12  @package         Hypothesis
     3 * Plugin Name: Hypothesis
     4 * Plugin URI: http://hypothes.is/
     5 * Description: Hypothesis is an open platform for the collaborative evaluation of knowledge. This plugin embeds the necessary scripts in your Wordpress site to enable any user to use Hypothesis without installing any extensions.
     6 * Author: The Hypothesis Project and contributors
     7 * Version: 0.5.0
     8 * Author URI: http://hypothes.is/
     9 * Text Domain:     hypothesis
     10 * Domain Path:     /languages
    1311 */
    1412
    1513// Exit if called directly.
    1614defined( 'ABSPATH' ) or die( 'Cannot access pages directly.' );
     15
     16// Load textdomain
     17function hypothesis_load_plugin_textdomain() {
     18    load_plugin_textdomain( 'my-plugin', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );
     19}
     20add_action( 'plugins_loaded', 'hypothesis_load_plugin_textdomain' );
    1721
    1822/**
     
    407411 */
    408412function enqueue_hypothesis() {
    409     wp_enqueue_script( 'hypothesis', 'https://hypothes.is/embed.js', [], false, true );
     413    wp_enqueue_script( 'hypothesis', 'https://hypothes.is/embed.js', array(), false, true );
    410414}
    411415
     
    426430
    427431    // Otherwise highlighting is on by default.
    428     wp_enqueue_script( 'nohighlights', plugins_url( 'js/nohighlights.js', __FILE__ ), [], false, true );
     432    wp_enqueue_script( 'nohighlights', plugins_url( 'js/nohighlights.js', __FILE__ ), array(), false, true );
    429433
    430434        // Embed options.
    431435    if ( isset( $options['highlights-on-by-default'] ) ) :
    432         wp_enqueue_script( 'showhighlights', plugins_url( 'js/showhighlights.js', __FILE__ ), [], false, true );
     436        wp_enqueue_script( 'showhighlights', plugins_url( 'js/showhighlights.js', __FILE__ ), array(), false, true );
    433437    endif;
    434438
    435439    if ( isset( $options['sidebar-open-by-default'] ) ) :
    436         wp_enqueue_script( 'sidebaropen', plugins_url( 'js/sidebaropen.js', __FILE__ ), [], false, true );
     440        wp_enqueue_script( 'sidebaropen', plugins_url( 'js/sidebaropen.js', __FILE__ ), array(), false, true );
    437441    endif;
    438442
    439443    if ( isset( $options['serve-pdfs-with-via'] ) ) :
    440         wp_enqueue_script( 'pdfs-with-via', plugins_url( 'js/via-pdf.js', __FILE__ ), [], false, true );
     444        wp_enqueue_script( 'pdfs-with-via', plugins_url( 'js/via-pdf.js', __FILE__ ), array(), false, true );
    441445    endif;
    442446
  • hypothesis/trunk/readme.txt

    r1548172 r1557795  
    44Requires at least: 3.0.1
    55Tested up to: 4.7
    6 Stable tag: 0.4.9
     6Stable tag: 0.5.0
    77License: BSD
    88License URI: http://opensource.org/licenses/BSD-2-Clause
     
    2121
    2222== Changelog ==
     23
     24= 0.5.0 =
     25- Fix an incompatibility with PHP < 5.4 introduced in the last release.
     26- Load plugin textdomain.
    2327
    2428= 0.4.9 =
Note: See TracChangeset for help on using the changeset viewer.