Plugin Directory

Changeset 427818


Ignore:
Timestamp:
08/23/2011 07:55:58 PM (15 years ago)
Author:
Beaver6813
Message:

2.0b2.110822

  • Removed registration/enqueuing script in favor of just enqueueing
  • Fixed bug/typo in compressed init script
Location:
infinite-scroll/branches/Beta
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • infinite-scroll/branches/Beta/includes/infinite-scroll.class.php

    r426703 r427818  
    66public function __construct()
    77    {
    8     self::$Version = '2.0b2.110821';
     8    self::$Version = '2.0b2.110822';
    99    self::$PresetRepo = 'http://plugins.svn.wordpress.org/infinite-scroll/branches/PresetDB/PresetDB.csv.php';
    1010    self::$PresetDB = WP_PLUGIN_DIR."/infinite-scroll/PresetDB.csv.php";
     
    160160    if (($paged && $paged > 1) && !have_posts())
    161161        {
    162         header("HTTP/1.1 404 Not Found");
     162        header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found");
    163163        header("Status: 404 Not Found");
    164164        }   
  • infinite-scroll/branches/Beta/infinitescroll.init.js.php

    r426703 r427818  
    11<?php
    2 header('Content-Type: application/javascript');
     2ob_start();
    33require_once( '../../../wp-load.php' );
    44wp();
    5    
     5ob_clean();
     6header($_SERVER["SERVER_PROTOCOL"]." 200 Ok");
     7header("Status: 200");
     8header('Content-Type: application/javascript');
    69//Get pathParse and validate it.
    710$error = false;
     
    102105            echo file_get_contents("js/behaviors/manual-trigger.min.js");
    103106        echo 'function infinite_scroll_callback(newElements,data){'.$js_calls.'}
    104 jQuery(document).ready(function($){$("'.$content_selector.'").infinitescroll({debug:'.$debug.',loading:{img:"'.$loading_image.'",msgText:"'.$loading_text.'",finishedMsg:"'.$donetext.'"},state:{currPage:"'.$pathInfo[0][2].'"},behavior:"'.$behavior.'",nextSelector:"'.$next_selector.'",navSelector:"'.$navigation_selector.'",contentSelector:"'.$content_selector.'",itemSelector:"'.$post_selector.'",pathParse:["'.$pathInfo[0][0].'","'.$pathInfo[0][1].'"]},function(){window.setTimeout(infinite_scroll_callback(newElements,data),1);});';
     107jQuery(document).ready(function($){$("'.$content_selector.'").infinitescroll({debug:'.$debug.',loading:{img:"'.$loading_image.'",msgText:"'.$loading_text.'",finishedMsg:"'.$donetext.'"},state:{currPage:"'.$pathInfo[0][2].'"},behavior:"'.$behavior.'",nextSelector:"'.$next_selector.'",navSelector:"'.$navigation_selector.'",contentSelector:"'.$content_selector.'",itemSelector:"'.$post_selector.'",pathParse:["'.$pathInfo[0][0].'","'.$pathInfo[0][1].'"]},function(newElements,data){window.setTimeout(infinite_scroll_callback(newElements,data),1);});';
    105108        if(isset($_GET['a']) && $_GET['a']==1)
    106109                echo '$("'.$content_selector.'").infinitescroll("pause");';
  • infinite-scroll/branches/Beta/readme.txt

    r426703 r427818  
    4949
    5050== Changelog ==
     51= 2.0b2.110822 =
     52* Removed registration/enqueuing script in favor of just enqueueing
     53* Fixed bug/typo in compressed init script
     54
    5155= 2.0b2.110821 =
    5256* Converted options pages to use Settings API
  • infinite-scroll/branches/Beta/wp_infinite_scroll.php

    r426703 r427818  
    22/*
    33Plugin Name: Infinite Scroll
    4 Version: 2.0b2.110821
     4Version: 2.0b2.110822
    55Plugin URI: http://www.infinite-scroll.com
    66Description: Automatically loads the next page of posts into the bottom of the initial page.
Note: See TracChangeset for help on using the changeset viewer.