WordPress.org

Plugin Directory

Changeset 1187545


Ignore:
Timestamp:
06/25/15 14:42:03 (3 years ago)
Author:
blazingtorch
Message:

PrayBox 1.4.1 - Bug Fixes, etc.

Location:
praybox
Files:
31 added
3 edited

Legend:

Unmodified
Added
Removed
  • praybox/trunk/inc/enqueue_functions.php

    r1181276 r1187545  
    11<?php 
    22add_action('wp_enqueue_scripts','public_praybox_assets'); 
    3 add_action('admin_enqueue_scripts', 'admin_praybox_assets'); 
     3add_action('admin_enqueue_scripts','admin_praybox_assets'); 
    44 
    55function public_praybox_assets() { 
    6     wp_register_style('pbx-public', plugins_url().'/praybox/css/bt-praybox-sc.css'); 
     6    global $pb_version; 
     7    wp_register_style('pbx-public', plugins_url()."/praybox/css/bt-praybox-sc.css?$pb_version"); 
    78    wp_enqueue_style('pbx-public'); 
    89 
    910    wp_enqueue_script('jquery'); 
    10 //  wp_enqueue_script('praybox_public', plugins_url().'/praybox/js/jquery.pb_public.js'); 
    1111 
    12 wp_enqueue_script( 'praybox_public', plugins_url().'/praybox/js/jquery.pb_public.js', array( 'jquery' ) ); 
    13 wp_localize_script( 'praybox_public', 'pbAjax', array( 'pb_ajaxurl' => admin_url( 'public_pb_ajax.php' ) ) ); 
     12    wp_enqueue_script('praybox_public', plugins_url()."/praybox/js/jquery.pb_public.js?$pb_version", array('jquery')); 
     13    wp_localize_script("praybox_public", "pbAjax", array('pb_ajaxurl' => admin_url('public_pb_ajax.php'))); 
    1414} 
    1515 
    1616function admin_praybox_assets() { 
    17     wp_register_style('pbx-admin', plugins_url().'/praybox/css/bt-praybox-admin.css'); 
     17    wp_register_style('pbx-admin', plugins_url()."/praybox/css/bt-praybox-admin.css?$pb_version"); 
    1818    wp_enqueue_style('pbx-admin'); 
    1919 
    20     wp_enqueue_script('praybox_admin', plugins_url().'/praybox/js/jquery.pb_admin.js'); 
     20    wp_enqueue_script('praybox_admin', plugins_url()."/praybox/js/jquery.pb_admin.js?$pb_version"); 
    2121} 
    2222 
  • praybox/trunk/praybox.php

    r1181276 r1187545  
    44Plugin URI: http://www.praybox.com/ 
    55Description: PrayBox is being used to manage prayer requests on WordPress websites all over the world. 
    6 Version: 1.4 
     6Version: 1.4.1 
    77Author: Bryan Haddock 
    88Author URI: http://www.blazingtorch.com 
     
    2424    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
    2525*/ 
     26 
     27//Plugin Version for JS and CSS refresh 
     28$pb_version="1.4.1"; 
     29 
    2630include("inc/pb_constants.php"); 
    2731include("inc/functions.php"); 
     
    5660//DEACTIVATION 
    5761register_deactivation_hook(__FILE__, 'deactivate_pb_crons'); 
     62 
     63 
  • praybox/trunk/readme.txt

    r1181276 r1187545  
    112112* Added AJAX to Prayer requests list to keep from having to reload the request list 
    113113 
     114=June 25, 2015 - 1.4.1 = 
     115* Added version number to JS and CSS references so that these resources are updated if they have been previously cached... 
Note: See TracChangeset for help on using the changeset viewer.