Skip to content

Commit 6a715a7

Browse files
committed
Fixed minor object context bug
1 parent ef17aad commit 6a715a7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/Core.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ public function add_body_classes($classes) {
4545

4646
// Add page, parent and post-type classes, if available
4747
$classes[] = 'page-' . Helpers::get_page_slug();
48-
if($parent_slug) $classes[] = 'parent-' . $parent_slug;
48+
if( $parent_slug ) $classes[] = 'parent-' . $parent_slug;
4949
$classes[] = 'post-type-' . get_post_type();
5050

5151
// Add category slugs
52-
foreach($categories as $cat) {
52+
foreach( $categories as $cat ) {
5353
$classes[] = 'category-' . $cat;
5454
}
5555

app/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ private function verify_dependencies( $deps = true, $args = array() ) {
185185
*
186186
*/
187187
public static function get_plugin_option( $key, $cache = true ) {
188-
$key = $this->prefix( $key );
188+
$key = self::prefix( $key );
189189

190190
if( $cache ) {
191191
// Attempt to get value from cache, else fetch value from database

0 commit comments

Comments
 (0)