Plugin Directory

Changeset 1229463


Ignore:
Timestamp:
08/24/2015 06:40:07 PM (11 years ago)
Author:
boyevul
Message:

Removed post formats from the plugins (better suited to be enabled on a theme level)

Location:
my-optional-modules/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • my-optional-modules/trunk/class.myoptionalmodules-modules.php

    r1229384 r1229463  
    4444            $myoptionalmodules_frontpage ,
    4545            $myoptionalmodules_readmore ,
    46             $myoptionalmodules_commentspamfield;
    47 
     46            $myoptionalmodules_commentspamfield ,
     47            $myoptionalmodules_miniloopmeta ,
     48            $myoptionalmodules_miniloopstyle ,
     49            $myoptionalmodules_miniloopamount;
    4850        if( $myoptionalmodules_javascripttofooter ) {
    4951            add_action ( 'wp_enqueue_scripts' , array ( $this , 'remove' ) );
     
    120122            add_filter ( 'comments_template' , array ( $this , 'disqus_code' ) );
    121123        }
    122         add_filter ( 'the_content' , array ( $this , 'miniloop' ) );
     124       
     125        if( $myoptionalmodules_miniloopmeta && $myoptionalmodules_miniloopstyle && $myoptionalmodules_miniloopamount ) {
     126            add_filter ( 'the_content' , array ( $this , 'miniloop' ) );
     127        }
     128       
    123129        if( $myoptionalmodules_google ) {
    124130            add_action ( 'wp_head' , array ( $this , 'google_analytics' ) );
  • my-optional-modules/trunk/class.myoptionalmodules.php

    r1229384 r1229463  
    33 * CLASS myoptionalmodules()
    44 *
    5  * File last update: 10.0.9.8
     5 * File last update: 10.0.9.9
    66 *
    77 * Actions REQUIRED by the plugin (unless otherwise noted).
     
    2929        add_action ( 'wp', array( $this, 'scripts' ) );
    3030        add_action ( 'admin_enqueue_scripts' , array ( $this , 'font_awesome' ) );
    31         add_action ( 'after_setup_theme' , array ( $this , 'post_formats' ) );
    3231   
    3332        if( 1 == $myoptionalmodules_plugincss ):
     
    7170        wp_register_style ( 'my_optional_modules' , $myStyleFile );
    7271        wp_enqueue_style  ( 'my_optional_modules' );
    73     }
    74 
    75     // Add ALL POST FORMATS
    76     function post_formats() {
    77         add_theme_support (
    78             'post-formats',
    79             array (
    80                 'aside',
    81                 'gallery',
    82                 'link',
    83                 'image',
    84                 'quote',
    85                 'status',
    86                 'video',
    87                 'audio',
    88                 'chat'
    89             )
    90         );
    9172    }
    9273
  • my-optional-modules/trunk/plugin.php

    r1229384 r1229463  
    44Plugin URI:
    55Description: Optional modules and additions for Wordpress.
    6 Version: 10.0.9.8
     6Version: 10.0.9.9
    77Author: boyevul
    88Author URI:
  • my-optional-modules/trunk/readme.txt

    r1229387 r1229463  
    11=== My Optional Modules ===
    22Contributors: boyevul
    3 Tags: meta, og, twitter, facebook, google, description, title, 404, comments, version, pingbacks, author, date, archives, disable, horizontal, galleries, font awesome, share, RSS, DNSBLDNSBL, garbage, removal, trash, footer, lazy load, exclude, remove, hide, front page, search results, authors, categories, tags, post formats, single post, miniloop, attachment, media, embedder, oEmbed
     3Tags: meta, og, twitter, facebook, google, description, title, 404, comments, version, pingbacks, author, date, archives, disable, horizontal, galleries, font awesome, share, RSS, DNSBLDNSBL, garbage, removal, trash, footer, lazy load, exclude, remove, hide, front page, search results, authors, categories, tags, single post, miniloop, attachment, media, embedder, oEmbed
    44Requires at least: 4.1
    55Tested up to: 4.3
    6 Stable tag: 10.0.9.8
     6Stable tag: 10.0.9.9
    77
    88An assortment of functions to enhance WordPress.
     
    9494
    9595== Changelog ==
    96 = 10.0.9.8 =
     96= 10.0.9.8 / 10.0.9.9 =
    9797*   *Release Date - 24th, August, 2015*
     98*   Removed post formats from the plugins (better suited to be enabled on a theme level)
     99*   *Post formats being implemented via this plugin was also known to cause some minor*
     100*   *issues with some themes and the way that they displayed post content*
    98101*   The following update corrects *guideline violations* in this WordPress plugin
    99102*   img.bi embedding removed (not GPL (creative commons), disallowed by WP)
Note: See TracChangeset for help on using the changeset viewer.