Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cleanup

  • Loading branch information...
commit 03aae9a0416239d73a1390ca959251c5df980a06 1 parent 3a55702
@alexkingorg authored
View
0  content/queries/08-tools.php → content/queries/07-tools.php
File renamed without changes
View
16 content/queries/07-is-main-query.php → content/queries/08-is-main-query.php
@@ -1,19 +1,17 @@
<section id="<?php echo section_id(); ?>" class="step slide" data-x="<?php echo $data_x; ?>" data-y="<?php echo $data_y; ?>">
<div class="inner-wrap">
<h2>Bonus tip: <code>is_main_query()</code></h2>
- <p class="typ-sm">wp-includes/query.php, line 724</p>
+ <p class="typ-sm">wp-includes/query.php</p>
</div>
<div class="code-block">
-<pre class="code prettyprint linenums">function is_main_query() {
+<pre class="code prettyprint linenums">// line 724
+function is_main_query() {
global $wp_query;
return $wp_query->is_main_query();
-}</pre>
- </div>
- <div class="inner-wrap">
- <p class="typ-sm">wp-includes/query.php, line 3514</p>
- </div>
- <div class="code-block">
-<pre class="code prettyprint linenums">class WP_Query {
+}
+
+// line 3514
+class WP_Query {
function is_main_query() {
global $wp_the_query;
return $wp_the_query === $this;
View
4 content/the-content/05-consistency.php
@@ -1,6 +1,6 @@
<section id="<?php echo section_id(); ?>" class="step slide" data-x="<?php echo $data_x; ?>" data-y="<?php echo $data_y; ?>">
<div class="inner-wrap">
- <p>Developers love patterns.</p>
- <p>Developers <em>assume</em> consistency.</p>
+ <p class="typ-big mar-bottom-2x">Developers love patterns.</p>
+ <p class="typ-big">Developers <em>assume</em> consistency.</p>
</div>
</section>
View
4 content/the-content/14-examples.php
@@ -17,7 +17,7 @@
<!-- 2 -->
<article class="stage pad-top-2x">
<div class="inner-wrap">
- <p class="center"><code>&lt;!--nextpage--></code></p>
+ <p class="center"><code class="typ-big">&lt;!--nextpage--></code></p>
</div>
</article>
@@ -30,7 +30,7 @@
<!-- 4 -->
<article class="stage" id="the-content-stage-get-posts">
<div class="inner-wrap">
- <h2><code>get_posts()</code></h2>
+ <h2><code>WP_Query, get_posts()</code></h2>
<p class="file-location">wp-includes/query.php, line 2756</p>
</div>
<div class="code-block">
View
2  content/the-content/css/the-content.html
@@ -12,7 +12,7 @@
padding-top: 80px;
}
#the-content-05-consistency {
- padding-top: 220px;
+ padding-top: 150px;
}
#the-content-06-revelation {
padding-top: 200px;
View
2  content/the-excerpt/01-overview.php
@@ -2,7 +2,7 @@
<div class="inner-wrap">
<ul class="typ-intro">
<li>Can be set manually.</li>
- <li>Auto-generated from <br><code class="inline">$post->post_content</code></li>
+ <li>Auto-generated from <br><code>$post->post_content</code></li>
<li>Truncates by words (default 55), not by characters.</li>
</ul>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.