Remove unnecessary statics

This commit is contained in:
Robin Cornett
2015-05-30 09:50:56 -04:00
parent 9b42e9b3ea
commit 79d672f623
2 changed files with 11 additions and 11 deletions
@@ -23,7 +23,7 @@ class Display_Featured_Image_Genesis_Common {
*
* @since 1.1.0
*/
public static function get_image_variables() {
public function get_image_variables() {
self::$post_types = array();
@@ -112,7 +112,7 @@ class Display_Featured_Image_Genesis_Common {
*
* @since 2.2.1
*/
protected static function set_image_id( $image_id = '' ) {
protected function set_image_id( $image_id = '' ) {
$frontpage = get_option( 'show_on_front' ); // either 'posts' or 'page'
$postspage = get_option( 'page_for_posts' );
@@ -241,7 +241,7 @@ class Display_Featured_Image_Genesis_Common {
}
protected static function set_item_title( $title = '' ) {
protected function set_item_title( $title = '' ) {
$frontpage = get_option( 'show_on_front' ); // either 'posts' or 'page'
$postspage = get_option( 'page_for_posts' );
@@ -287,7 +287,7 @@ class Display_Featured_Image_Genesis_Common {
* @author Philip Newcomer
* @link http://philipnewcomer.net/2012/11/get-the-attachment-id-from-an-image-url-in-wordpress/
*/
public static function get_image_id( $attachment_url = '' ) {
public function get_image_id( $attachment_url = '' ) {
$attachment_id = false;
@@ -331,7 +331,7 @@ class Display_Featured_Image_Genesis_Common {
*
* @author hellofromtonya
*/
protected static function fetch_image_id_query( $url_stripped, $attachment_url ) {
protected function fetch_image_id_query( $url_stripped, $attachment_url ) {
global $wpdb;
@@ -355,7 +355,7 @@ class Display_Featured_Image_Genesis_Common {
*
* @since 2.2.0
*/
public static function minimum_backstretch_width() {
public function minimum_backstretch_width() {
$large = apply_filters( 'display_featured_image_genesis_set_minimum_backstretch_width', get_option( 'large_size_w' ) );
if ( ! is_numeric( $large ) ) {
$large = get_option( 'large_size_w' );
@@ -21,7 +21,7 @@ class Display_Featured_Image_Genesis_Description {
* @return null Return early if not a single post with an excerpt.
*/
public static function do_excerpt() {
public function do_excerpt() {
if ( ! is_singular() || is_front_page() ) {
return;
@@ -53,7 +53,7 @@ class Display_Featured_Image_Genesis_Description {
*
* @return null Return early if not blog/front page.
*/
public static function do_front_blog_excerpt() {
public function do_front_blog_excerpt() {
if ( ! is_front_page() && ! is_home() ) {
return;
@@ -96,7 +96,7 @@ class Display_Featured_Image_Genesis_Description {
* @return null Return early if not the correct archive page, not page one, or no term meta is set.
*/
public static function do_tax_description() {
public function do_tax_description() {
global $wp_query;
@@ -136,7 +136,7 @@ class Display_Featured_Image_Genesis_Description {
* @return null Return early if not author archive or not page one.
*/
public static function do_author_description() {
public function do_author_description() {
if ( ! is_author() || get_query_var( 'paged' ) >= 2 ) {
return;
@@ -168,7 +168,7 @@ class Display_Featured_Image_Genesis_Description {
* @return null Return early if not on relevant post type archive.
*/
public static function do_cpt_archive_description() {
public function do_cpt_archive_description() {
if ( ! is_post_type_archive() || ! genesis_has_post_type_archive_support() ) {
return;