Avainsanana WordPress

You could publish a brief spec/howto of how you create the default labels

9. huhtikuuta 2012 klo 16.31
Sijainti: Blogit: Archetyped
Avainsanat: WordPress

For the image labels, you could publish a brief spec/howto of how you create the default labels, crowdsource translated versions and then pick the right one in the code based on current locale.

But then again I think simple text instead of images would work even better. I’m not sure what you mean when you list ”Style (e.g. prev/next buttons) cannot be customized”: surely that applies to images more than text, which can be bent any which way with CSS?

Vastaa viestiin sen kontekstissa (Archetyped)

WordPress != WordPress.com

16. helmikuuta 2012 klo 19.58
Sijainti: Blogit: Kehitys kehittyy
Avainsanat: Drupal, WordPress

Köhöm, WordPress != WordPress.com (mikäli ulkopuolisella alustalla jälkimmäiseen viitattiin).

Mutta asiaan: onko tuo looginen captcha yleisessä jakelussa oleva Drupal-lisäosa vai talon sisällä kehitelty? Onko se tehokas? Kiinnostaa, koska se on täysin suomenkielisenä poikkeuksellisen käyttäjäystävällinen.

Vastaa viestiin sen kontekstissa (Kehitys kehittyy)

Inserting newlines

6. tammikuuta 2012 klo 19.46
Sijainti: Keskustelupalstat: WordPress Support Forums
Avainsanat: WordPress

There was a topic about replacing br tags with newlines on Urban Giraffe, but it seems to have led nowhere, so I’m posting this here just so that I can find it when I again need it, and maybe of help to others too.

I modified the search_and_replace function on line 37 of models/search.php so that $this->replace is assigned a replaced string itself:

$this->replace = str_replace("\\n", '
', $replace);

This means I want to replace any occurences of ”\n”’s in my replacement string with actual newlines just prior to applying the replacement.

It’s an ad hoc solution which I’m reverting once I’m done with newlines. I’ve not explored any possible side effects this solution may have, so use with caution.

Edit: Forum ate my br.

Vastaa viestiin sen kontekstissa (WordPress Support Forums)

Settings keep resetting

13. syyskuuta 2011 klo 15.38
Sijainti: Keskustelupalstat: WordPress Support Forums
Avainsanat: WordPress

Is it just me, or do the plugin’s settings get reset back to defaults with each update? Is this intentional and if so, why?

Vastaa viestiin sen kontekstissa (WordPress Support Forums)

This looks related to a test case I was preparing

30. heinäkuuta 2011 klo 18.34
Sijainti: Vianhallintajärjestelmät: WordPress Trac
Avainsanat: WordPress

This looks related to a test case I was preparing to demonstrate how flawed the output from wpautop can get inside lists:

<ol>
<li>
foo

bar
</li>
</ol>

renders as:

<ol> 
<li> 
foo</p> 
<p>bar
</li> 
</ol>

whereas I’d expect it to be

<ol> 
<li> 
<p>foo</p> 
<p>bar</p>
</li> 
</ol>

I’m changing the summary to generally cover wpautop’s problems within <li> elements.

Vastaa viestiin sen kontekstissa (WordPress Trac)

The code refers to small.gif by a path that doesn’t work

30. heinäkuuta 2011 klo 9.16
Sijainti: Keskustelupalstat: WordPress Support Forums
Avainsanat: WordPress

Apparently either results.php or head.php (in view/admin/) refers to an image called small.gif by a path that doesn’t work: every time I use Search Regex I get 404 hits for a ’/images/small.gif’, when it should in fact refer to [site root]/wp-content/plugins/search-regex/images/small.gif. Apparently $this->url() precluding the path in the code doesn’t work — maybe $this is out of scope?

Vastaa viestiin sen kontekstissa (WordPress Support Forums)

On a hunch, I instead opted to change Upload Url Path

27. heinäkuuta 2011 klo 20.20
Sijainti: Keskustelupalstat: WordPress Support Forums
Avainsanat: WordPress

On a hunch, I instead opted to change Upload Url Path (of the main site) to point to where Fileupload Url already was pointing, and lo and behold, now the uploads get url’s with a /files/ base (which I feel is best).

Funnily, despite this same setting on the testing site, the url’s there have the wp-content/uploads base (like I mentioned in the previous comment), as if Upload Url Path didn’t have an effect. There doesn’t seem to be a Fileupload Url setting there — perhaps it’s deprecated? (The testing site runs trunk, whereas the main site runs latest stable.)

(Usually it’s the other way round: something that works in testing won’t work on the production site.)

Vastaa viestiin sen kontekstissa (WordPress Support Forums)

I’m chiming in with my experience just in case more reproducers are of any help

27. heinäkuuta 2011 klo 19.43
Sijainti: Keskustelupalstat: WordPress Support Forums
Avainsanat: WordPress

I’m chiming in with my experience just in case more reproducers are of any help. I’ve encountered the issue @RavanH described in the initial post on my multisite install: files uploaded onto the root blog get url’s with blogs.dir while subsites (in subdirectories) get url’s without it.

I was running WPMU just prior to it getting integrated into WP proper, but unfortunately I can’t say for sure whether I did a clean reinstall or an upgrade to WP (non-MU) at that point.

I’m only running a single network with none of the plugins mentioned in this thread thus far. Well, no, actually I do run another multisite for testing purposes, completely separate from the first, and there this issue doesn’t manifest.

The upload-related variables for the main site are as follows:

`Upload Url Path:
Upload Path: wp-content/blogs.dir/1/files
Fileupload Url: http://mummila.net/files`

I suspect the Upload Path is what’s causing this; further evidence is that on the testing site Upload Path: wp-content/uploads results in url’s withoutblogs.dir.

I’m thinking of changing Upload Path, but I’m unsure where it ultimately shouldpoint to. If wp-content/uploads results in corresponding url’s, is that the default for the root blog? If so, is there a reason why it deviates from what the sub-sites have, which is sitepath/files? I’d expect the root site to have /files/ as attachment url base.

Vastaa viestiin sen kontekstissa (WordPress Support Forums)

You should use wp_enqueue_script also when including the plugin script

4. heinäkuuta 2011 klo 18.11
Sijainti: Keskustelupalstat: Stack Exchange
Avainsanat: WordPress

I’d supplement saibot’s answer by saying that, instead of a raw <script>...</script> block, you should use wp_enqueue_script() also when including the plugin script:

<?php wp_enqueue_script("jquery-cookie", get_bloginfo('template_url').'/jquery.cookie.js', array(), '0'); ?>

Vastaa viestiin sen kontekstissa (Stack Exchange)

Oh so confusing

29. kesäkuuta 2011 klo 21.49
Sijainti: Keskustelupalstat: WordPress Support Forums
Avainsanat: WordPress

Wait, so post formats are different from post types, the defaults of which are always available? Oh so confusing.

Vastaa viestiin sen kontekstissa (WordPress Support Forums)

« Uudempia - Vanhempia »